Det virker fint nok. Gider du ikke forklare lidt. Jeg har ledt på nettet hele dagen efter et eller andet, der kunne forklare mig hvad der sker. Det var noget med et handle og noget gui kode på et konsol vindue. Hvis du vil skrive et par kommentarer til koden ville jeg blive meget glad
SW_HIDE Hides the window and activates another window. SW_MAXIMIZE Maximizes the specified window. SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order. SW_RESTORE Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window. SW_SHOW Activates the window and displays it in its current size and position. SW_SHOWDEFAULT Sets the show state based on the SW_ flag specified in the STARTUPINFO structure passed to the CreateProcess function by the program that started the application. SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window. SW_SHOWMINIMIZED Activates the window and displays it as a minimized window. SW_SHOWMINNOACTIVE Displays the window as a minimized window. The active window remains active. SW_SHOWNA Displays the window in its current state. The active window remains active. SW_SHOWNOACTIVATE Displays a window in its most recent size and position. The active window remains active. SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
ok, det blev jeg en lile-bitte smule klogere af, men jeg skal vist læse lidt mere c++. For et ligger da milevidt fra det Java, jeg er vant til... Det lyder som noget hen ad static final med gammel arv fra C ?!? (jeg er ikke helt nede med det) - Men mange tak for info'en og hjælpen : ))
Jeg kan ikke rigtigt komme i tanke om noget i Java der reelt svarer til extern "C".
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.