ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
494
494
EMPFEHLEN
-
Hallo!
Ich habe hier ein etwas altersschwaches Headerfile, in dem unter anderem der typedef
vorkommt. Nun, gcc, OpenWatcom und Visual C beschweren sich heftigst darüber... Visual C sagt zum BeispielCode :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifdef WIN32 #define ToolAPI __stdcall #ifndef ToolIMPORT #define ToolIMPORT __declspec( dllimport ) #endif #else #define ToolAPI WINAPI #ifndef ToolIMPORT #define ToolIMPORT #endif #ifndef Tool_CHAR_DEF #define Tool_CHAR_DEF typedef unsigned char CHAR; typedef unsigned char UCHAR; #endif // Tool_CHAR_DEF #endif ... typedef void (ToolAPI * Tool_HOOK)( Tool_INDEX message, Tool_INDEX action, Tool_INDEX param, CHAR * name );
Code :1 2 3 4 5 6
c:\TestProject\Toolapi.h(82) : error C2143: syntax error : missing ')' before '*' c:\TestProject\Toolapi.h(82) : error C2143: syntax error : missing '{' before '*' c:\TestProject\Toolapi.h(82) : error C2059: syntax error : ')' c:\TestProject\Toolapi.h(86) : error C2061: syntax error : identifier 'ToolAPIInitialize' c:\TestProject\Toolapi.h(86) : error C2059: syntax error : ';' c:\TestProject\Toolapi.h(86) : error C2059: syntax error : 'type'
Ähm, weiss jemand auf die schnelle Rat?
Danke!Geändert von Archer (16.06.04 um 00:10 Uhr)
-
Schon erledigt...
Ähnliche Themen
-
Verständnisproblem mit headerfile
Von BOBTHEPAINTER im Forum C/C++Antworten: 1Letzter Beitrag: 16.03.08, 13:51 -
Typedef für 8-Bit Zahlen
Von napstix im Forum C/C++Antworten: 4Letzter Beitrag: 11.01.08, 21:18 -
struct in typedef?
Von lordfritte im Forum C/C++Antworten: 3Letzter Beitrag: 12.09.07, 21:56 -
typedef für Template
Von jokey2 im Forum VisualStudio & MFCAntworten: 4Letzter Beitrag: 02.06.05, 11:04 -
problem mit typedef
Von nitro-Merlin im Forum C/C++Antworten: 2Letzter Beitrag: 30.11.04, 17:57





Zitieren
Login






