Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralObtaining Process info Pin
14-Mar-01 16:45
suss14-Mar-01 16:45 
GeneralRe: Obtaining Process info Pin
James R. Twine15-Mar-01 5:28
James R. Twine15-Mar-01 5:28 
GeneralATL/COM question Pin
Christian Graus14-Mar-01 14:02
protectorChristian Graus14-Mar-01 14:02 
QuestionHow to excute my program when.... Pin
14-Mar-01 14:00
suss14-Mar-01 14:00 
AnswerRe: How to excute my program when.... Pin
Christian Graus14-Mar-01 14:05
protectorChristian Graus14-Mar-01 14:05 
GeneralBitmap Procedure works - but no Bitmap appears on the screen!! Pin
14-Mar-01 8:52
suss14-Mar-01 8:52 
GeneralRe: Bitmap Procedure works - but no Bitmap appears on the screen!! Pin
Christian Graus14-Mar-01 11:40
protectorChristian Graus14-Mar-01 11:40 
General__stdcall and Member Functions Pin
Rhoam14-Mar-01 8:12
Rhoam14-Mar-01 8:12 
Greetings Programs,

I've hit an interesting error when using threads and timers in my latest project. If I execute a new thread from one class calling a function of another class like so:

_beginthread(pPointer->IInitializeMonitor, 0, NULL);

I recieve the following error:
Y:\smtpmon\smtpmon.cpp(364) : error C2664: '_beginthread' : cannot convert parameter 1 from 'void (void)' to 'void (__cdecl *)(void *)'

Similarly, if I call a Timer Callback function from within it's own class, such as:

bSuccess = SetWaitableTimer(
hTimer, // Handle to the timer object.
&liDueTime, // When timer will become signaled.
m_iInterval*1000, // Periodic timer interval of X seconds.
TimerAPCProc, // Completion routine.
NULL,
FALSE ); // Do not restore a suspended system.
I recieve the following error:
Y:\smtpmon\smtpcom.cpp(57) : error C2664: 'SetWaitableTimer' : cannot convert parameter 4 from 'void (void *,unsigned long,unsigned long)' to 'void (__stdcall *)(void *,unsigned long,unsigned long)'

I'm sure that I'm missing something simple, but I just can't figure out what it is. Any help would be greatly appreciated.

Rhoam
GeneralRe: __stdcall and Member Functions Pin
Chris Losinger14-Mar-01 9:04
professionalChris Losinger14-Mar-01 9:04 
GeneralRe: __stdcall and Member Functions Pin
Erik Funkenbusch14-Mar-01 11:47
Erik Funkenbusch14-Mar-01 11:47 
Questiongantt? Pin
bogdan14-Mar-01 7:48
bogdan14-Mar-01 7:48 
AnswerRe: gantt? Pin
David Cunningham14-Mar-01 12:23
cofounderDavid Cunningham14-Mar-01 12:23 
GeneralExport bitmap to RTF file Pin
14-Mar-01 7:33
suss14-Mar-01 7:33 
QuestionLoading a Bitmap - but how? Pin
14-Mar-01 4:12
suss14-Mar-01 4:12 
AnswerRe: Loading a Bitmap - but how? Pin
14-Mar-01 4:19
suss14-Mar-01 4:19 
AnswerRe: Loading a Bitmap - but how? Pin
14-Mar-01 4:22
suss14-Mar-01 4:22 
GeneralThanks Pin
14-Mar-01 0:14
suss14-Mar-01 0:14 
GeneralNeed to partition a hard disk programming... Pin
Ammar13-Mar-01 20:31
Ammar13-Mar-01 20:31 
QuestionChildframe maximized question? Pin
The Ironduke13-Mar-01 17:56
The Ironduke13-Mar-01 17:56 
AnswerRe: Childframe maximized question? Pin
orcun colak14-Mar-01 6:43
orcun colak14-Mar-01 6:43 
GeneralNeed help quick on a couple of silly simple problems Pin
David LeBlanc13-Mar-01 13:30
David LeBlanc13-Mar-01 13:30 
GeneralRe: Need help quick on a couple of silly simple problems Pin
Joe Moldovan13-Mar-01 14:33
Joe Moldovan13-Mar-01 14:33 
GeneralRe: Need help quick on a couple of silly simple problems Pin
Steve Driessens13-Mar-01 17:16
Steve Driessens13-Mar-01 17:16 
GeneralRe: Need help quick on a couple of silly simple problems Pin
Ammar13-Mar-01 20:29
Ammar13-Mar-01 20:29 
GeneralRe: Need help quick on a couple of silly simple problems Pin
Peter Godec14-Mar-01 13:27
Peter Godec14-Mar-01 13:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.