Pregunta

I am writing a win32 application with the following code in Recourse.rc

IDD_DLGFIRST DIALOG 260, 200, 188, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Win32 Programming"
FONT 8, "MS Shell Dlg"
BEGIN
    DEFPUSHBUTTON   "OK", IDOK, 130, 10, 50, 14
END

When I try to compiler the following code with MinGW, Windres.exe gives me an error on the second line

¿Fue útil?

Solución

I figured out what the problem was. I forgot to #include windows.h for the style macros.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top