Problem mit ATL und WTL
-
Hallo,
beim Versuch ein einfaches Projekt mit ATL und WTL zu kompilieren, bekomme ich diese Fehlermeldung und ich hab keine Ahnung, was der Compiler hier von mir will:
376// BOOL Init(DWORD_PTR proc, void *pThis) 377// { 378// if (!pThunk) 379// { 380// pThunk = static_cast<_stdcallthunk *>(AllocStdCallThunk()) ..// if (pThunk == NULL) { return FALSE; } } if ((proc == 0) && (pThis == NULL)) { return TRUE; } return pThunk->Init(proc, pThis); }Visual C++ Express schrieb:
f:\microsoft platform sdk for windows server 2003 r2\include\atl\atlbase.h(379) : error C2143: Syntaxfehler: Es fehlt ')' vor ';'
f:\microsoft platform sdk for windows server 2003 r2\include\atl\atlbase.h(379) : error C2059: Syntaxfehler: ')'Bin für jede Hilfestellung dankbar
-
Fehlt in Zeile 380 nicht das Semikolon am Ende?
-
flenders schrieb:
Fehlt in Zeile 380 nicht das Semikolon am Ende?
Leider nicht

Das kommt mit deinem Vorschlag:
BOOL Init(DWORD_PTR proc, void *pThis) { if (!pThunk) { pThunk = static_cast<_stdcallthunk *>(AllocStdCallThunk()); if (pThunk == NULL) { return FALSE; } } if ((proc == 0) && (pThis == NULL)) { return TRUE; } return pThunk->Init(proc, pThis); }Visual C++ Express schrieb:
f:\microsoft platform sdk for windows server 2003 r2\include\atl\atlbase.h(380) : error C2143: Syntaxfehler: Es fehlt ')' vor ';'
f:\microsoft platform sdk for windows server 2003 r2\include\atl\atlbase.h(380) : error C2059: Syntaxfehler: ')'