IonelBurtan
Programmer
Hello,
I have the following unexplained problem:
This is the cpp file of a Win32 Console Project from VC++ with SP3.
#include "stdafx.h"
#include <windows.h>
#include <winbase.h>
#include <string>
using namespace std;
long WINAPI TestThreadProcedure(long lParameter);
int main(int argc, char* argv[])
{
HANDLE hThread, hEvent;
DWORD dwThreadId;
hEvent = CreateEvent(NULL, FALSE, FALSE, "Event1"
hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)
TestThreadProcedure,
hEvent,0,&dwThreadId);
printf("Hello World!\n"
SetEvent(hEvent);
return 0;
}
long WINAPI TestThreadProcedure(long lParameter)
{
string s="test";
printf("Hello World from thread!\n"
ConvertThreadToFiber((LPVOID)&s);
return 0L;
}
At compile time I get the error "
"ConvertThreadToFiber undeclared identifier"
I have included "winbase.h" where this function header is declare, no change. I can'd explain myself what's wrong. (I have looked in winbase and windows.h for #include, #ifdef and #ifndef and I am out of ideeas)
Please help me with this,
Thanx s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
I have the following unexplained problem:
This is the cpp file of a Win32 Console Project from VC++ with SP3.
#include "stdafx.h"
#include <windows.h>
#include <winbase.h>
#include <string>
using namespace std;
long WINAPI TestThreadProcedure(long lParameter);
int main(int argc, char* argv[])
{
HANDLE hThread, hEvent;
DWORD dwThreadId;
hEvent = CreateEvent(NULL, FALSE, FALSE, "Event1"
hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)
TestThreadProcedure,
hEvent,0,&dwThreadId);
printf("Hello World!\n"
SetEvent(hEvent);
return 0;
}
long WINAPI TestThreadProcedure(long lParameter)
{
string s="test";
printf("Hello World from thread!\n"
ConvertThreadToFiber((LPVOID)&s);
return 0L;
}
At compile time I get the error "
"ConvertThreadToFiber undeclared identifier"
I have included "winbase.h" where this function header is declare, no change. I can'd explain myself what's wrong. (I have looked in winbase and windows.h for #include, #ifdef and #ifndef and I am out of ideeas)
Please help me with this,
Thanx s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...