Posted on 1998-09-09
I've created a Win 32 console application.
I have the following files:
AlertManager *mgr = new AlertManager;
hThread = CreateThread (NULL,0,
NULL, 0, &dwThread);
When I compile, I get the following errors:
C:\ESPdev\bin\AlertMgt\main.cpp(141) : error C2440: 'type cast' : cannot convert from 'overloaded function type' to 'unsigned long (__stdcall *)(void *)'
None of the functions with this name in scope match the target type
However, if I put Process Queue in main.cpp, there are no errors.
Does it mean that all functions for a thread should be local to the file that creates the thread?
If I need to call a function from another class, how can I go about doing it?