FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cannot create Dialog Box (fwh1201) , not in fwh8.10
Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
Cannot create Dialog Box (fwh1201) , not in fwh8.10
Posted: Wed Feb 29, 2012 07:03 PM
Hello,

I am trying to convert a big aplication from fwh8.10 (XHB comercial) to FWH1201 (BCC) and am not able to run the aplication (see subject).

The error occurs in a dialog with multiple Folders.

Isolating the problem , i made a aplication wich only calls the dialog with a minimum of code (also in the rc-file) , it works

Code (fw): Select all Collapse
DEFINE DIALOG oDlg RESOURCE "InvKlantLev"
REDEFINE FOLDER oFld ID 110 OF oDlg ;
   PROMPT  "Klant"  , "Leverancier"  ;
   DIALOGS  "KlntFld" , "LevFld"
REDEFINE FOLDER oFldK ID 110 OF oFld:aDialogs[1] ;
   PROMPT  "Facturatie Adres"  , "Extra gegevens klant" , "Postadres"  ;
   DIALOGS  "KlntAdres" , "KlntLevKlnt" , "KlntPostAdres"
REDEFINE FOLDER oFldL ID 110 OF oFld:aDialogs[2] ;
   PROMPT  "Adres Leverancier"  , "Extra gegevens leverancier"  ;
   DIALOGS  "LefAdres" , "KlntLevLev"
ACTIVATE DIALOG oDlg


Linking in this code in the main aplication (with the same rc-data) , gives a error on the dialog KlntPostAdres (as it did in the original full main program). Without this dialog
DIALOGS "KlntAdres" , "KlntLevKlnt" // , "KlntPostAdres"
the aplication works

I have no idea what else i can try. Why works this code in a litle program , not in the main aplication ?

If i can not solve this , conversion to fwh1201 is not possible !!!!!!!

Frank Demont
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Cannot create Dialog Box (fwh1201) , not in fwh8.10
Posted: Thu Mar 01, 2012 07:44 AM

Demont,

normally there is an unknown control in the .rc file.

Can you post that part of your resource file, where the error occurs ?

kind regards

Stefan
Posts: 55
Joined: Fri Jul 08, 2011 06:43 AM
Re: Cannot create Dialog Box (fwh1201) , not in fwh8.10
Posted: Thu Mar 01, 2012 08:55 AM

Stefan,

Thanks for the reply , but it seems that there was some confusion about linking in the rc-file.

It is not clear what the problem was in the main program , there was no reason to not include the dialog.

I will try the rewrite the module

Frank

Continue the discussion