Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWindow styles Pin
18-Oct-01 23:07
suss18-Oct-01 23:07 
GeneralRe: Window styles Pin
Nish Nishant18-Oct-01 23:52
sitebuilderNish Nishant18-Oct-01 23:52 
GeneralATL again Pin
mimi18-Oct-01 23:06
mimi18-Oct-01 23:06 
Generalvideo for windows Pin
Jimolo18-Oct-01 22:53
Jimolo18-Oct-01 22:53 
Generalreply me Pin
18-Oct-01 21:35
suss18-Oct-01 21:35 
Generalreply me Pin
18-Oct-01 21:34
suss18-Oct-01 21:34 
GeneralRe: reply me Pin
Joan M19-Oct-01 6:27
professionalJoan M19-Oct-01 6:27 
GeneralCreateWaitableTimer is not creating Pin
Joe Moldovan18-Oct-01 21:27
Joe Moldovan18-Oct-01 21:27 
I run VS6(SP5) on Win2000(SR2). I have a one line program which will not compile.

#include windows.h

int APIENTRY WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow )
{
CreateWaitableTimer( NULL, TRUE, "JOE" );
return 0;
}

c:\develop\test\test.cpp(8) : error C2065: 'CreateWaitableTimer' : undeclared identifier

To clarify the situation, I have no precompiled headers. The call definition is seen by VS because a mouse hover over the source shows the call prototype correctly. If I change windows.h to afxwin.h I get a good compile.

QUESTION:

Why can't I compile with windows.h? What has a Win32 API call got to do with MFC - or rather what does afxwin.h do that I don't?

Thanks for any advice Rose | [Rose] !
GeneralRe: CreateWaitableTimer is not creating Pin
Joe Moldovan18-Oct-01 21:30
Joe Moldovan18-Oct-01 21:30 
GeneralRe: CreateWaitableTimer is not creating Pin
Michael Dunn18-Oct-01 22:19
sitebuilderMichael Dunn18-Oct-01 22:19 
GeneralRe: CreateWaitableTimer is not creating Pin
Joe Moldovan18-Oct-01 23:14
Joe Moldovan18-Oct-01 23:14 
QuestionAre there any web sites about "AI"? Pin
Maer72718-Oct-01 21:24
Maer72718-Oct-01 21:24 
AnswerRe: Are there any web sites about "AI"? Pin
Nish Nishant18-Oct-01 23:55
sitebuilderNish Nishant18-Oct-01 23:55 
AnswerRe: Are there any web sites about "AI"? Pin
19-Oct-01 2:25
suss19-Oct-01 2:25 
AnswerRe: Are there any web sites about "AI"? Pin
Carlos Antollini19-Oct-01 12:42
Carlos Antollini19-Oct-01 12:42 
GeneralRe: Are there any web sites about "AI"? Pin
Maer72720-Oct-01 3:24
Maer72720-Oct-01 3:24 
Generalabout Dll loading order Pin
Maer72718-Oct-01 21:19
Maer72718-Oct-01 21:19 
GeneralAbout "CEdit" Pin
Maer72718-Oct-01 21:11
Maer72718-Oct-01 21:11 
GeneralRe: About "CEdit" Pin
Christian Graus18-Oct-01 22:28
protectorChristian Graus18-Oct-01 22:28 
GeneralRe: About "CEdit" Pin
Maer72720-Oct-01 3:12
Maer72720-Oct-01 3:12 
Generala thread local storage (TLS) index Pin
Maer72718-Oct-01 21:00
Maer72718-Oct-01 21:00 
GeneralRe: a thread local storage (TLS) index Pin
Steen Krogsgaard18-Oct-01 22:48
Steen Krogsgaard18-Oct-01 22:48 
GeneralRe: a thread local storage (TLS) index Pin
Maer72720-Oct-01 3:29
Maer72720-Oct-01 3:29 
GeneralRe: a thread local storage (TLS) index Pin
Steen Krogsgaard21-Oct-01 22:56
Steen Krogsgaard21-Oct-01 22:56 
GeneralRe: a thread local storage (TLS) index Pin
Steen Krogsgaard18-Oct-01 22:52
Steen Krogsgaard18-Oct-01 22:52 

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.