Icon



  • Hi

    weiß jemand von euch, wie ich ein icon einer exe datei zuweisen kann?

    benutzte als IDE eclipse mit dem cdt plugin.

    compiler mingw

    mfg
    silicore



  • Also ich habe Dev-CPP...und mache das so:

    resource.h

    #define IDI_CONSOLE 100
    

    resource.rc

    #include "resource.h"
    IDI_CONSOLE ICON "Icon.ico"
    

    Main

    #include "resource.h"
    
    int main();
    {
        HINSTANCE hInstance;
        WNDCLASSEX WndClsEx;
        WndClsEx.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_CONSOLE));
    
    return 0;
    }
    

    wenn du kompilierst sollte ein icon (Icon.ico) im Ordner sein)
    hoffe habe nix vergessen


Anmelden zum Antworten