Page 1 of 1

Cannot create Dialog Box

Posted: Sun Apr 16, 2006 10:41 pm
by Silvio
ON PROGRAM

Code: Select all

 DEFINE DIALOG oDlg RESOURCE "MAIN"
 ACTIVATE DIALOG oDlg CENTER

IT MAKE THIS ERROR

Path and name: C:\Work\PRG\img\Immagine.Exe (32 bits)
Size: 434,688 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 04/17/06, 00:39:02
Error description: Error FiveWin/3 Cannot create Dialog Box:
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿResource: MAIN


THE RESOURCE

Code: Select all

#ifdef __FLAT__
   1 24 "WindowsXP.Manifest"
#endif

#ifdef __64__
   1 24 "WinXP/WindowsXP.Manifest64"
#endif






#define DIALOG_1   1

MAIN DIALOG 13, 50, 770, 332
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
CAPTION "PHOTO HUNT"
FONT 8, "MS Sans Serif"
{
 CONTROL "TBitMap", 100, "TBitMap", 0 | WS_CHILD | WS_VISIBLE, 5, 7, 377, 314
 CONTROL "TBitMap", 200, "TBitMap", 0 | WS_CHILD | WS_VISIBLE, 388, 7, 377, 314
}



WHY ?

Posted: Sun Apr 16, 2006 11:07 pm
by Antonio Linares
Because you need to redefine those two TBitmap controls that you have placed in the dialog.

Posted: Sun Apr 16, 2006 11:48 pm
by Silvio
SORRY u ARE RIGHT