FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour help to migrate do vc++ harbour uestudio (Tim , Otto)
Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 11:29 AM

Hi,

I have some older projects that I would like to upgrade, wanted to do step by step because I do not have much time available

1) pass to harbour (are in xharbour)
2) pass for ms vc ++ express desktop (are in bcc582)
3) switch to using the uestudio, it has the resource editor included, can I use for our systems? have to change someting in rc? What is the resource that are using? can anyone put an updated script here of uestudio?

does anyone have a basic schedule, how to do it? It seems that Tim and Otto did this migration, could put something here?
should I do in that order up or have another better? i want make it step by step in idle time.

thanks

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 12:12 PM

I was studying these older RC made with the BRW in dialogs they have an order of the controls, which you can change, then went to see the new, made with pelles, no longer has that option, I missed something?

thanks

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 01:16 PM

Norberto,
I am sorry. I use xharbour and bcc582 exclusively.
I plan to switch to harbour (as Antonio suggests harbour).
But till I have out the WINHOTEL metro inspired version I don’t touch anything. All is setup so well at the moment.
No problems at all.
Best regards,
Otto

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 01:19 PM

Otto, thank, i guess Tim make this change.

Posts: 368
Joined: Sun May 31, 2009 06:25 PM
Re: help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 03:12 PM
Norberto,

I don't use uestudio but I migrated from xHarbour to harbour a couple of years ago without problem. I've been successfully using msvc10 for more than a year now. Actually I use any compiler because I use a bat file with hbmk2.exe from Harbour that helps a lot. All my projects are built under the same structure:

d:\fwh (FIVEWIN)
d:\MSVS10 (MS VC 10)
D:\hbmsvc10 (harbour for msvc)
d:\Projetos\MyProject
d:\Projetos\MyProject\Sources (prg files)
d:\Projetos\MyProject\Res (res + bmp ico etc)
d:\Projetos\MyProject\Inc (ch files)

m.bat in d:\Projetos\MyProject
Code (fw): Select all Collapse
SET LIB=D:\MSVS10\SDK\v7.0A\Lib;D:\MSVS10\Lib
SET PATH=D:\MSVS10\bin;D:\hbmsvc10\bin\;D:\MSVS10\Common7\IDE;D:\MSVS10\SDK\v7.0A\bin;C:\WINDOWS;C:\WINDOWS\SYSTEM32
hbmk2 -run -inc -ldflag=/FORCE:MULTIPLE -iD:\fwh\include -iD:\MSVS10\SDK\v7.0A\Include -iD:\MSVS10\include -i.\INC MyProject.hbm D:\FWH\fwhc32.hbc


MyProject.hbm in d:\Projetos\MyProject
Code (fw): Select all Collapse
SOURCES\FILE_01
SOURCES\FILE_02
---
SOURCES\FILE_NN
RES\MyProject.rc


fwhc32.hbc in d:\FWH
Code (fw): Select all Collapse
{win}gt=gtgui
{win}libs=KERNEL32 USER32 GDI32 WINSPOOL COMCTL32 COMDLG32 ADVAPI32 SHELL32 OLE32 OLEAUT32 UUID ODBC32 ODBCCP32 IPHLPAPI MPR VERSION WSOCK32 MSIMG32 OLEDLG PSAPI GDIPLUS WINMM
{win}libs=HBWIN HBCT HBMEMIO PNG HBTIP XHB HBMISC
#HBTIPSSL
{win}libs=D:\FWH\LIB\FIVEHC32 D:\FWH\LIB\FIVEH32 D:\FWH\LIB\DOLPHINVC D:\FWH\LIB\libmysqlM

You can add any needed lib to fwhc32.hbc

I don't remember any work to be done on rc files. I use the same files with the 3 compilers. Linking XHB.lib should cover the specific functions from xHarbour.
Regards,



André Dutheil

FWH 13.04 + HB 3.2 + MSVS 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 04:18 PM

Norberto,

FWH provides a samples/buildh32.bat to use MSVC 2010. We also have it for 2012. Inside it you can see what files to link and the link flags, etc.

We also have settings files for UEStudio so you can automatize building from it. Have a look at FWH/UEStudio/FWH.zip

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: help to migrate do vc++ harbour uestudio (Tim , Otto)
Posted: Thu Nov 08, 2012 05:38 PM

Norberto,

First, FWH and Harbour 3.0 work fine with MSVC 2010 ! I have not tried it with 2012.

I do not use a resource designer any longer. I simply edit the values in my RC file manually. That way I am absolutely positive that every control is lined up exactly. Once you understand the format of a control, you can go through and quickly edit so everything is uniform ( height, width, location ). Initially you will just clean up what your created with Borland. When you go to add a new control, it will become very easy to just type it in. However, UE Studio does have a resource tool that you can use.

I do have UE Studio and use its makefile/build system. Most people use external make files and that works fine for them. You can link a button in your project to call an external makefile. In mine, I maintain an older xHarbour and the current Harbour versions. I have a link to run the xBuild program, and use UE Studio's Build option to create a Harbour .exe. Two clicks and I get both builds. That's pretty nice.

Antonio gave you the resources. Because I don't monitor this forum throughout the day, you might want to contact me via email, or chat via Lync.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion