Perché non funziona? Ritorna sempre 1 :|
Devo usare per forza il C++?codice:#include <stdio.h> #include <windows.h> int main(void) { HINSTANCE instance; HWND handle; handle = CreateWindow ( "MainWClass", // Class name "Window!!", // Title WS_MINIMIZEBOX|// \ WS_CAPTION| // \__> style WS_POPUP| // / WS_SYSMENU, // / CW_USEDEFAULT, // Left CW_USEDEFAULT, // Top 250, // Width 250, // Height (HWND) NULL, (HMENU) NULL, instance, NULL ); if (!handle) { return 1; } ShowWindow(handle, SW_SHOW); while (1) { UpdateWindow(handle); } return 0; }
Devo settare qualcosa da qualche parte? (uso Code::blocks).
Grazie![]()

Rispondi quotando