anfängerproblem mit VC++ 2005 Express



  • HALL0.

    habe eine frage zu folgendem code:

    #include <windows.h>
    
    int _stdcall WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nCmdShow)
    {
    	::MessageBox (NULL, L"HALLO WELT!",L"HINWEIS",MB_OK);
    
    	return 0;
    
    }
    

    dazu bekomme ich fehlermeldungen, mit denen ich nichts anfangen kann:

    c:\programme\microsoft platform sdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
    c:\programme\microsoft platform sdk\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\programme\microsoft platform sdk\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
    c:\programme\microsoft platform sdk\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\programme\microsoft platform sdk\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    was bedeutet das? DANKE!



  • Hast du das PSDK richtig integriert ?

    BTW 💡 : _stdcall ➡ __stdcall ➡ WINAPI



  • HALLO CODEFINDER.

    danke für die antwort. nach einiger GOOGLE-SUCHE habe ich auch herausgefunden, dass die reihenfolge der integrierten LIB und HEADERS etc. wichtig ist und dass DirectX nicht vor den SDK sachen stehen sollte. nachdem ich dies geändert hatte, lief das programm auch.

    trotzdem danke.
    STEFAN.


Anmelden zum Antworten