C++ vector _beginthread Problem
Code:
#include <iostream>
#include <string>
#include <process.h>
#include <vector>
using namespace std;
class CInstanz
{
public:
static void thread(void *dertext)
{
cout << endl << "Inhalt: ";
cout << dertext << endl;
}
};
int main()
{
CInstanz a;
vector<string> vTestString;
vector<string>::iterator i;
vTestString.push_back ("TextText");
i = vTestString.begin();
_beginthread(&a.thread,0,(void *)&i);
system("PAUSE");
return 0;
}
Wie bekomme ich statt der Adresse den Inhalt von "dertext" ausgegeben?