Compile fix for newer MinGW

Discussion of development and patch submission.
Alegend45
Posts: 85
Joined: Sat 26 Apr, 2014 4:33 am

Compile fix for newer MinGW

Postby Alegend45 » Fri 03 Apr, 2015 7:24 pm

Apparently, UPDOWN_CLASS is not a valid class in an rc file. So, I replaced it with its definition in commctrl.h and PCem works!

Code: Select all

diff -r 5ff0243b69e5 src/pc.rc
--- a/src/pc.rc   Sun Feb 08 17:17:14 2015 +0000
+++ b/src/pc.rc   Fri Apr 03 14:22:45 2015 -0500
@@ -68,7 +68,7 @@
     COMBOBOX        IDC_COMBOSND,62,136,157,120,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
     PUSHBUTTON      "Configure", IDC_CONFIGURESND, 224, 136, 40, 14, WS_TABSTOP
     EDITTEXT        IDC_MEMTEXT, 62, 152, 36, 14, ES_AUTOHSCROLL | ES_NUMBER
-    CONTROL         "", IDC_MEMSPIN, UPDOWN_CLASS, UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_NOTHOUSANDS | UDS_SETBUDDYINT, 98, 152, 12, 14
+    CONTROL         "", IDC_MEMSPIN, "msctls_updown32", UDS_ALIGNRIGHT | UDS_ARROWKEYS | UDS_NOTHOUSANDS | UDS_SETBUDDYINT, 98, 152, 12, 14
     LTEXT           "MB", IDC_STATIC, 98, 152, 40, 10
     CONTROL         "CMS / Game Blaster",IDC_CHECK3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,14,172,118,10
     CONTROL         "Gravis Ultrasound",IDC_CHECKGUS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,14,188,118,10   

Return to “Development”

Who is online

Users browsing this forum: No registered users and 2 guests