Cannot create Dialog Box (fwh1201) , not in fwh8.10

Cannot create Dialog Box (fwh1201) , not in fwh8.10

Postby Demont Brecht » Wed Feb 29, 2012 7: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: Select all  Expand view

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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am

Re: Cannot create Dialog Box (fwh1201) , not in fwh8.10

Postby StefanHaupt » Thu Mar 01, 2012 7: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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Cannot create Dialog Box (fwh1201) , not in fwh8.10

Postby Demont Brecht » Thu Mar 01, 2012 8: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
Demont Brecht
 
Posts: 55
Joined: Fri Jul 08, 2011 6:43 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 107 guests