Jump to content


Photo

Forgers Tutorials Question


  • Please log in to reply
2 replies to this topic

#1 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 31 July 2006 - 01:32 PM

here's this code.
IDD_ABOUT DIALOG DISCARDABLE  0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
BEGIN
	DEFPUSHBUTTON   "&OK",IDOK,174,18,50,14
	PUSHBUTTON	  "&Cancel",IDCANCEL,174,35,50,14
	GROUPBOX		"About this program...",IDC_STATIC,7,7,225,52
	CTEXT		   "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",
					IDC_STATIC,16,18,144,33
END
It's from the dialog tutorial, but it doesn't work due to these lines.
GROUPBOX		"About this program...",IDC_STATIC,7,7,225,52
	CTEXT		   "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",
					IDC_STATIC,16,18,144,33
If I take away the IDC_STATIC in the groupbox then that is fine, but the CTEXT refuses to work. Then if I take away the text it has a problem with END. So I tried going to curly braces ({}) but it still doesn't work. Could someone please help me translate this.

#2 Josh_Met

Josh_Met

    Young Padawan

  • Members
  • Pip
  • 1 posts
  • Location:NSW, Australia
  • Interests:Programming / Webdesign, Guitar, Sports.

Posted 02 August 2006 - 01:40 AM

Im pretty sure the problem here is that IDC_STATIC is not defined. If you goto the .h file and add something like

#define IDC_STATIC 1003
you should be right.

I don't have the tut open so i cant really see the code.

#3 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 03 August 2006 - 10:17 AM

OK I'll try that. Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users