WTH!? CreateWIndowExA()..parameter



  • hi , folgendes problem:

    #define IDI_LIST_DATEIEN 103;
    #define IDI_BTN_ADD 204;
    #define IDI_BTN_DEL 205;
    //_---------------Anfang WinMain--------------------------------------------
    WINAPI WinMain(HINSTANCE HI,HINSTANCE prevHI,LPSTR lpcmdLine,int cmdshow)
    {..}
    
    LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)
    
    static HWND lstv_Dateien;
    static HWND btn_Add;
    
    switch(message)
        {   
         case WM_CREATE:            
    btn_Add=CreateWindowEx(NULL,"button","Hinzufรผgen",WS_CHILD|WS_VISIBLE,430,20,80,25,hwnd,(HMENU)IDI_BTN_ADD,MainWindowInstance,NULL);
    lstv_Dateien=CreateWindowEx(WS_EX_CLIENTEDGE,"LISTBOX","",WS_CHILD|WS_VISIBLE,20,20,400,200,hwnd,(MENU)IDI_LIST_DATEIEN,MainWindowInstance,NULL);
    

    Compiler sacht:
    *
    Compiling...
    main.cpp
    H:\C++\webCodeAPI\webcode API\main.cpp(67) : error C2143: syntax error : missing ')' before ';'
    H:\C++\webCodeAPI\webcode API\main.cpp(67) : error C2660: 'CreateWindowExA' : function does not take 10 parameters
    H:\C++\webCodeAPI\webcode API\main.cpp(67) : error C2143: syntax error : missing ';' before ','
    H:\C++\webCodeAPI\webcode API\main.cpp(67) : error C2059: syntax error : ')'
    H:\C++\webCodeAPI\webcode API\main.cpp(68) : error C2143: syntax error : missing ')' before ';'
    H:\C++\webCodeAPI\webcode API\main.cpp(68) : error C2660: 'CreateWindowExA' : function does not take 10 parameters
    H:\C++\webCodeAPI\webcode API\main.cpp(68) : error C2143: syntax error : missing ';' before ','
    H:\C++\webCodeAPI\webcode API\main.cpp(68) : error C2059: syntax error : ')'*
    ๐Ÿ˜• ๐Ÿ˜• ๐Ÿ˜• ๐Ÿ˜• ๐Ÿ˜•

    warum?



  • ach ja MainWindowInstance ist glaobal und hat den gleichen wert wie HI aus der win main..



  • bei den defines die semikolons weg ๐Ÿ˜ƒ ๐Ÿ˜ƒ



  • ACH DU SCHEISSE! ich sollte liber hรคkeln gehen..thx


Log in to reply