[newbie] compile problem with mmsystem.h
I''m trying to use GetTickCount() so i have included mmsystem.h and linked with winmm.lib. When I compile I get:
c:\program files\microsoft platform sdk\include\mmsystem.h(103) : error C2146: syntax error : missing '';'' before identifier ''MMVERSION''
c:\program files\microsoft platform sdk\include\mmsystem.h(103) : fatal error C1004: unexpected end of file found
Any help?
-db
jeff@hype52.com
www.pricezapper.com
-dbjeff@hype52.comwww.pricezapper.com
Hmm, in mmsystem.h there''s a bit of code that looks like this:
#ifdef _WIN32
typedef UINT MMVERSION;
So, _WIN32 probably hasn''t been defined, cause it doesn''t know about the type. If it''s a win32 project it should auto be defined (I''m not sure, but it might be defined in windows.h, so make sure you''re including that. Otherwise in project->settings theres somewhere to tell it to define it).
#ifdef _WIN32
typedef UINT MMVERSION;
So, _WIN32 probably hasn''t been defined, cause it doesn''t know about the type. If it''s a win32 project it should auto be defined (I''m not sure, but it might be defined in windows.h, so make sure you''re including that. Otherwise in project->settings theres somewhere to tell it to define it).
Thanks!!!!!! all i did was #include in that particular file and it works, thanks again! (I shoulda been able to figure that one out)
-db
jeff@hype52.com
www.pricezapper.com
-db
jeff@hype52.com
www.pricezapper.com
-dbjeff@hype52.comwww.pricezapper.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement