Visual C++ Express Edition großes Problem mit "mmsystem.h"

stimon

Mitglied
Hallo,
ich habe #pragma comment(lib,"winmm.lib") und #include "mmsystem.h" eingefügt, bekomme nun aber diese Fehler, brauche dringend Hilfe!?

E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(103) : error C2146: syntax error : missing ';' before identifier 'MMVERSION'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(103) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(103) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(111) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(111) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(121) : error C2146: syntax error : missing ';' before identifier 'ms'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(121) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(121) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(122) : error C2146: syntax error : missing ';' before identifier 'sample'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(122) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(122) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(123) : error C2146: syntax error : missing ';' before identifier 'cb'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(123) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(123) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(124) : error C2146: syntax error : missing ';' before identifier 'ticks'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(124) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(124) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(129) : error C2146: syntax error : missing ';' before identifier 'hour'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(129) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(129) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(130) : error C2146: syntax error : missing ';' before identifier 'min'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(130) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(130) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(131) : error C2146: syntax error : missing ';' before identifier 'sec'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(131) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(131) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(132) : error C2146: syntax error : missing ';' before identifier 'frame'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(132) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(133) : error C2146: syntax error : missing ';' before identifier 'fps'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(133) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(133) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(134) : error C2146: syntax error : missing ';' before identifier 'dummy'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(136) : error C2146: syntax error : missing ';' before identifier 'pad'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(143) : error C2146: syntax error : missing ';' before identifier 'songptrpos'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(143) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(143) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : error C2377: 'FAR' : redefinition; typedef cannot be overloaded with any other symbol
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(111) : see declaration of 'FAR'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(285) : error C2065: 'HDRVR' : undeclared identifier
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(285) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(298) : error C2146: syntax error : missing ';' before identifier 'dwDCISize'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(298) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(298) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(299) : error C2146: syntax error : missing ';' before identifier 'lpszDCISectionName'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(299) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(299) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(300) : error C2146: syntax error : missing ';' before identifier 'lpszDCIAliasName'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(300) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(300) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(301) : error C2146: syntax error : missing ';' before identifier 'dnDevNode'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(301) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(301) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C2371: 'NEAR' : redefinition; different basic types
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : see declaration of 'NEAR'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C2086: 'int FAR' : redefinition
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : see declaration of 'FAR'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(302) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(336) : error C2146: syntax error : missing ';' before identifier 'dwDCISize'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(336) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(336) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(337) : error C2146: syntax error : missing ';' before identifier 'lpszDCISectionName'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(337) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(337) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(338) : error C2146: syntax error : missing ';' before identifier 'lpszDCIAliasName'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(338) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(338) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C2371: 'NEAR' : redefinition; different basic types
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : see declaration of 'NEAR'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C2143: syntax error : missing ';' before '*'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C2086: 'int FAR' : redefinition
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(146) : see declaration of 'FAR'
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(339) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(356) : error C2065: 'CALLBACK' : undeclared identifier
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(356) : error C2065: 'DRIVERPROC' : undeclared identifier
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(356) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\Programme\Microsoft Platform SDK\Include\mmsystem.h(356) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Danke
Daniel
 
Tut mir leid, aber ich habe bei mir (VS6) offensichtlich eine andere Version der mmsystem.h (4.00).
Aber wenn es um die Typdefinition für MMVERSION geht, dann deutet das darauf hin, daß der Compiler den Typ UINT nicht kennt. Die Typdefinition ist u.A. in der windef.h, die von windows.h includiert wird.
Überprüfe also mal Deine Includes
 

Neue Beiträge

Zurück