by Frank Demont » Sun Jan 29, 2006 8:07 am
Antonio
I reported on xhb problems when rc-files are in the xbp-file (step 3)
Tested on alaska.prg and alaska.rc :
When alaska.rc is not present in the build file , it build and runs ok
So i suppose there is no need to import a rc-file with the same name in the xbp-file
But when we import the rc-file in the xbp-file , i got errors as described earlyer. The first line in the rc-file , # include .../winapi.ch , takes winapi.ch from XHB , not from fwh . It seems that the default dir is changed to XHB.
Note that in fw2.6 and xhb october release there are no problems
Then i take testrich.prg , which has as alaska.prg also a rc-file with the same name
First try : without rc-file in the xbp-file :
pplication
===========
Path and name: C:\FWH\SAMPLES\testrich.exe (32 bits)
Size: 1,426,432 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 01/29/06, 09:01:31
Error description: Error FiveWin/3 Cannot create Dialog Box:
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿResource: Test
Stack Calls
===========
Called from: => CREATEDLGERROR(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: testrich.prg => MAIN(34)
SO , TESTRICH.RC MUST BE INCLUDED . WHY ? . IN ALASKA IT WAS NOT NEEDED.
Next problem : see higher
The first line in the rc-file , # include .../winapi.ch , takes winapi.ch from XHB , not from fwh . It seems that the default dir is changed to XHB.
So i had to change this line in # include "c:\fwh\....." , and now it seems to work. Yesterday i thaught that i had always the same error (cannot create dialog) , but maybe i did something wrong
I will report on xhb forum
Frank