FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New User FWH6.12
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Tue Dec 20, 2011 01:12 PM

You should compile just the main FBS.rc file:

FBS.RES : FBS.RC
$(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include fbs.rc

So you will get just one single res file

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Tue Dec 20, 2011 03:38 PM

Dear Antonio,

Thanks,
Getting closer to a 32 bit application.
I have managed to produce a single res file including the four rc files in the exe file.

Now, some lib files need to be converted to 32 bit libs..Is there a convector for doing this. Before i go any further.

Any suggestions...??

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Tue Dec 20, 2011 04:37 PM

You need to have the source code of those libs to rebuild them in 32 bits, otherwise you need to find a replacement for them.

What do you need them for ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Tue Dec 20, 2011 04:43 PM

Hi,

One lib holds the application security and copy protection..the prg is with myself and lib file generated and compiled..the source is with me..what file do I use to convert to 32 bits for my prg..

the other is outlook.lib....for a outlook like style.

the third is the six3 driver....its for tagged nsx files.....also the dbfs are encrypted with a password ...for protection at client end..

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Tue Dec 20, 2011 04:58 PM
  1. Simply compile the LIB PRGs using Harbour instead of Clipper
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 06:26 AM

Hi,

The Libs are okay and compiled..No errors.

Now I have 225 prgs, 225 obj and 225 c files. Compilation gives a few warnings about syntax..but not to worry as those are not so critical. There are NO compile errors .

The exe is produced. I have added a msginfo() on the first line of my main prg as an indicator for execution..The exe file does not even reach there but just an alert dialog box appears with a OK button.

Am I missing something..????

Thanks, Regards and Merry Christmas

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 09:18 AM

Is it a Windows alert or a console text alert ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 09:53 AM
Hi,
It seems a console text alert...
FBS.EXE is my application
when i run 'fbs' i get the following.:





when i run 'fbs pfl,2011' i get the following :




very strange....
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 12:22 PM

Check if you get any log file in the folder where your EXE is located

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 12:24 PM

Hi,
NO log files.....

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 12:28 PM

What libraries are you linking ?

Please list all the libs that you are using

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 12:34 PM

Hi,
Here is a list from my test.rmk file..

PROJECT : FBS.EXE

FBS.EXE : $(PRG:.PRG=.OBJ) $(D:.C=.OBJ) FBS.RES
echo off
echo $(BCDIR)\bin\C0W32.OBJ + > b32.bc
echo $(OBJS), + >> b32.bc
echo FBS.EXE, + >> b32.bc
echo FBS.MAP, + >> b32.bc
echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
echo $(HBDIR)\lib\rtl.lib + >> b32.bc
echo $(HBDIR)\lib\vm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\lang.lib + >> b32.bc
echo $(HBDIR)\lib\macro.lib + >> b32.bc
echo $(HBDIR)\lib\rdd.lib + >> b32.bc
echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\debug.lib + >> b32.bc
echo $(HBDIR)\lib\common.lib + >> b32.bc
echo $(HBDIR)\lib\pp.lib + >> b32.bc
echo $(HBDIR)\lib\codepage.lib + >> b32.bc

echo $(HBDIR)\lib\olympia.lib + >> b32.bc
echo $(HBDIR)\lib\folder.lib + >> b32.bc
echo $(HBDIR)\lib\objects.lib + >> b32.bc
echo $(HBDIR)\lib\outlook.lib + >> b32.bc
echo $(HBDIR)\lib\oslib.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bc

echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

IF EXIST FBS.res echo FBS.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc

Regards

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 01:11 PM

Try to link gtwin.lib instead of gtgui.lib

also try to remove objects.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 99
Joined: Fri Dec 16, 2011 03:30 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 03:46 PM

Dear Antonio,

linking the gtwin.llib instead of gtgui.lib and without objects.lib produces the following errors:


Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_hb_gt_w32_tone' referenced from D:\FWH\HARBOUR\LIB\
GTWIN.LIB|gtwin
Error: Unresolved external '_hb_cdpID' referenced from D:\FWH\HARBOUR\LIB\GTWIN.
LIB|gtwin
Error: Unresolved external '_hb_gt_w32_setKbdState' referenced from D:\FWH\HARBO
UR\LIB\GTWIN.LIB|gtwin
Error: Unresolved external '_hb_gt_w32_setClipboard' referenced from D:\FWH\HARB
OUR\LIB\GTWIN.LIB|gtwin
Error: Unresolved external '_hb_gt_w32_getClipboard' referenced from D:\FWH\HARB
OUR\LIB\GTWIN.LIB|gtwin

** error 2 ** deleting FBS.EXE


I have checked and these calls are in the gtwin.lib file, so they should not be unresolved externals...????

I can generate a clip.log file, but that will only give the compilation of the prgs..

Thanks

FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New User FWH6.12
Posted: Wed Dec 21, 2011 06:48 PM

Link gtgui.lib and remove objects.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com