New User FWH6.12

New User FWH6.12

Postby RiazKhan » Sat Dec 17, 2011 6:14 am

Hi all,
i have finally decided to migrate to harbour and fwh, from fivewin and clipper 5.2. I have downloaded and installed all necessary files, fwh6.12,harbour2.0,bcc55. I complied the tutor01 with buildh.bat. the tutor01.exe file is generated but does not run, gives no error and does nothing. Am i missing something..thanks for any view on this, as i desperatly need to migrate to 32bit applications.
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby anserkk » Sat Dec 17, 2011 6:46 am

Dear Mr.Riaz Khan,

I tested FWH 6.12 here and is working fine.
Image

Please try with the Harbour version supplied along with FWH 6.12 ie Harbour Alpha Build 1.0 Intl. Please use BCC 5.5
It is available in the FiveWin website

Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: New User FWH6.12

Postby RiazKhan » Sat Dec 17, 2011 7:31 am

Hi Anser,
thanks a lot. I downloaded and recompiled. now the tutor01.exe works fine. thanks a lot.

I have fivewin 16-bit applications developed by myself successfully running in 18 companies. The clipper dos applications have been converted to fivewin. i am now having issues with memory errors like
"unrecoverable error 332. string/array memory overflow" it read about this in this forum and thus decided to migrate to fwh.

i think i will be posting here from time to time for suggestions, while moving my applications to fwh..

thnx..
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby ukservice » Sat Dec 17, 2011 11:05 am

Hello Mr. RiazKhan,

I advise you to update to FW 11.11 as there are many features and also you will be able to get Fivetech´s good support.

Welcome here!.

Best regards,
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: New User FWH6.12

Postby RiazKhan » Sat Dec 17, 2011 1:23 pm

Dear ukservice, Hi....

Thank you for the welcome, and yes I will consider your advice. Consider it noted.....

Regards
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby RiazKhan » Sun Dec 18, 2011 10:09 am

Okay so far so good.....the samples prgs compile well and execute....

I have setup one of my software application as a test sample for fwh 6.12. Its a large application with 277 prgs all to compile into one exe. At present i am using Clipper 5.2e, FiveWin 1.9.2 and Blinker 7.0. I use a batch file to compile all prgs and a lnk file for blinker7.

I tried to compile some of the prgs but produces lots of errors. I understand that fwh6.12 can easily read all previous source codes. How can I modify the buildh.bat file to accommodate all these prgs. It is recommended to use blinker instead of ilink32, so i will use blinker7.

Will appreciate all suggestions, thanks in advance.
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby Antonio Linares » Sun Dec 18, 2011 12:09 pm

RiazKhan,

If you are using Borland then you should use ilink32.exe

What errors do you get ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New User FWH6.12

Postby RiazKhan » Sun Dec 18, 2011 12:16 pm

Hi Antonio,

Okay.will use ilink32.no issue with that.
Once i compile all my prgs in one go, i can eliminate my errors. At the moment, I dont know how to modify the buildh.bat file to accommodate my more than one prg. I did modify the buildh file to accommodate my set of prgs, but it did not compile...If someone can send me a build file and perhaps a lnk file..i can work from there..
Does all the prgs convert to .ppo and then to .c, before linking..??

Thanks for your response....
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby Antonio Linares » Sun Dec 18, 2011 7:16 pm

RiazKhan,

You should use a make file to manage multiple PRG files. FWH provides several examples in makes folder.

Here you have an example for FWH 11.11 and Harbour 3.1:

go.bat
Code: Select all  Expand view
@if not exist obj md obj
c:\bcc582\bin\make -fvisualfw.mak


make.mak
Code: Select all  Expand view
#VisualFW Borland make, (c) FiveTech Software 2005-2011

HBDIR=c:\harbour
BCDIR=c:\bcc582
FWDIR=..\

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions!

PRGS =         \
.\APPLICAT.PRG \
.\CODE.PRG     \
.\DATABASE.PRG \
.\DEBUG.PRG    \
.\DESIGN.PRG   \
.\INDEX.PRG    \
.\INSPECT.PRG  \
.\MENU.PRG     \
.\OPTIONS.PRG  \
.\PROGRAM.PRG  \
.\PROJECT.PRG  \
.\RECORD.PRG   \
.\REP.PRG      \
.\REPORT.PRG   \
.\RESOURCE.PRG \
.\TOOLBAR.PRG  \
.\TOOLS.PRG    \
.\VISUAL.PRG              

OBJ = $(PRGS:.PRG=.OBJ)
OBJS = $(OBJ:.\=.\obj\)

PROJECT    : VISUALFW.EXE

VISUALFW.EXE : $(OBJS) VISUALFW.RES ..\lib\FiveH.lib ..\lib\FiveHC.lib
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo $(OBJS), + >> b32.bc
   echo visualfw.exe, + >> b32.bc
   echo visualfw.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
   echo $(HBDIR)\lib\png.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HBDIR)\lib\xhb.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\msimg32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\psapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

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

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
  del tmp

VISUALFW.RES : VISUALFW.RC
  $(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include visualfw.rc
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New User FWH6.12

Postby RiazKhan » Mon Dec 19, 2011 5:05 am

Dear Antonio,

Thanks, let me check and try it out with make file...

Regards
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby RiazKhan » Mon Dec 19, 2011 11:43 am

Hi Antonio,

Okay if have worked and made a few changes to the rmk file to accommodate my needs. It works file. I still have not been able to produce the exe file, and that is because of the dlls.

I use borland workshop for my dlls.and each application has more than one dll. I have added my dlls to screen32.dll via workshop. At the moment i do not understand the difference in res,dll,rc files. What would you recommend to use. As I do not have any rc files, the rmk file exists the process at that stage.

Thank you for the guidance..
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby Antonio Linares » Mon Dec 19, 2011 1:59 pm

I recommend you to use a single RC file.

Open your DLL with Resource Workshop and save it as a RC file. Then the make file will be able to manage it and place it inside the EXE
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New User FWH6.12

Postby RiazKhan » Mon Dec 19, 2011 7:00 pm

Hi Antonio,
Thanks for your quick response.
Problem.:
Apparently it seems that BRW 4.5 has some limitations. For this project I have four Dlls. The reason for splitting the dll was because BRW would not add any more dialogs in the dll. Giving errors as 'VTManager Fail/New Instance Fail". Probably reached some level of maximum.

I still have the same problem with rc file. I did open dll and save as rc and then added the second dll to the same rc. When adding th third dll to the same rc the same error pops up.

I have removed the "SetResources()" from my prgs

I can convert the four dll to four rc files. Can I then add the four rc file into the rmk file to compile into the exe...??

Regards
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Re: New User FWH6.12

Postby Antonio Linares » Mon Dec 19, 2011 7:22 pm

RiazKhan,

Try it this way:

myapp.rc
Code: Select all  Expand view
#include "one.rc"
#include "two.rc"
#include "three.rc"
#include "four.rc"
 


This way each RC can be limited in size, but the resulting myapp.rc includes all of them
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New User FWH6.12

Postby RiazKhan » Tue Dec 20, 2011 11:54 am

Dear Antonio,

Okay, tried your way and the listing is as below....

my fbs.rc file

#include "p6_lfl.rc"
#include "p2_lfl.rc"
#include "p1_lfl.rc"
#include "p5_lfl.rc"

this is the lines in the test.rmk file

FBS.RES : FBS.RC
$(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include P6_lfl.rc
$(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include P2_lfl.rc
$(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include P1_lfl.rc
$(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include P5_lfl.rc

while linking the rc the screen text..

D:\FWH\Bcc55\bin\brc32.exe -r -ID:\FWH\Bcc55\include P6_lfl.rc
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
D:\FWH\Bcc55\bin\brc32.exe -r -ID:\FWH\Bcc55\include P2_lfl.rc
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
D:\FWH\Bcc55\bin\brc32.exe -r -ID:\FWH\Bcc55\include P1_lfl.rc
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
D:\FWH\Bcc55\bin\brc32.exe -r -ID:\FWH\Bcc55\include P5_lfl.rc
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.

I guess this has linked all the four rc files in the exe file.

The exe file is produced and upon execution it displays an alert dialog box and does nothing. perhaps for the following reasons..

I use Six Driver RDD 3.0 SixNsx format. My dbf files are encrypted with a password. When I attach the six3.lib to the rmk file, on compilation I have the following error..:

Unsupported 16bit resource in file "D:\FWH\HARBOUR\LIB\SIX3.LIB"

Perhaps I need to convert my libs to 32 bit .....

Thanks and regards....Merry Christmas
FWH 20.04/Harbour3.2/Bcc7.40+/ilink32/Pelles 9.0
EMail: amriazkhan@gmail.com
Pakistan
User avatar
RiazKhan
 
Posts: 99
Joined: Fri Dec 16, 2011 3:30 pm
Location: Pakistan

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 35 guests