|
Darn GUI |
Zaphos
Member #1,468
August 2001
|
The GUI code doesn't seem to like C++ ... It says Quote: 128 game.cpp whenever I try to create a DIALOG object. How does one make the gui work? Here's the code I was using:
It isn't complete at all, that was just code I stole from excustom.c to see if I could get anything at all to work. Oh yeah, and the line the error is complaining about is the line with }; at the end of the global DIALOG initialization.
|
dudaskank
Member #561
July 2000
|
Put (void *) before the strings: DIALOG the_dialog[] = { /* (dialog proc) (x) (y) (w) (h) (fg) (bg) (key) (flags) (d1) (d2) (dp) (dp2) (dp3) */ { d_clear_proc, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, NULL, NULL, NULL }, // { d_edit_proc, 32, 32, 256, 8, 255, 0, 0, 0, sizeof(the_string)-1, 0, the_string, NULL, NULL }, { d_check_proc, 32, 64, 89, 13, 255, 0, 't', 0, 0, 0, (void *)"&Vsync?", NULL, NULL }, { d_button_proc, 120, 160, 81, 17, 255, 0, 0, D_EXIT, 0, 0, (void *)"Continue", NULL, NULL }, { NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL } }; ^__^ Toque a balada do amor inabalável, eterna love song de nós dois |
Zaphos
Member #1,468
August 2001
|
Sweet! It works!
|
|