Cannot create Dialog Box

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Cannot create Dialog Box

Post 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 ?
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Because you need to redefine those two TBitmap controls that you have placed in the dialog.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

SORRY u ARE RIGHT
Best Regards, Saludos

Falconi Silvio
Post Reply