FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Antonio: Please explain
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Antonio: Please explain
Posted: Tue May 12, 2020 05:19 PM
  • New: FUll support to easily build your PRGs from Microsoft free vscode. Just open
    a PRG from FWH\samples and build it using Ctrl + Shift + B"

I tried this ... but clearly I need to understand the setup.

I downloaded the code program ... but how does it need to be configured ? What are the steps ? I thought there was a section on this forum but I can't find it.

Thanks.

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio: Please explain
Posted: Tue May 12, 2020 10:31 PM

Dear Tim,

Please review this thread:

viewtopic.php?p=231362#p231362

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Antonio: Please explain
Posted: Tue May 12, 2020 11:24 PM

OK ... I looked at that thread. I reinstalled FWH 20.04. I was able to get the settings to now use Harbour to generate the .c code.

I was working with fivedit.prg in sources. I get the .c code compiled ... but now what do I need to do to get it to link the program and run it ?

Thanks.

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio: Please explain
Posted: Wed May 13, 2020 05:59 AM

Tim,

  1. Open Microsoft vscode and select the folder c:\FWH\samples folder

  2. Open a PRG from samples from vscode

  3. Press Ctrl + Shift + B

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Antonio: Please explain
Posted: Wed May 13, 2020 06:18 PM

Antonio,

That is exactly what I am doing.

VSCode builds the .c but stops there and does not build the actual executable or run it.

What am I missing ? It must be a setup issue ... so what do I need to change and where ?

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
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Antonio: Please explain
Posted: Thu May 14, 2020 09:04 PM

I really would like to use this feature from 20.04, but I need to understand why it does not complete the build. It creates the .c file and stops.

Certainly it does more than this.

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio: Please explain
Posted: Fri May 15, 2020 05:23 AM

Dear Tim,

Do you get an error msg ? Are you placed at c:\fwh\samples ?

Have you installed FWH 20.04 ?

You can edit the tasks.json file yourself and check it is looks like the one I pointed you to

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Antonio: Please explain
Posted: Mon May 18, 2020 06:00 PM

Antonio,

Yes, I am running by default in the samples directory.

I am using the simpler version you pointed to, which is using buildh32.bat ( since I'm using Microsoft )

The json is in the .vscode subfolder in the samples directory.

When I press t he keys, it tells me it cannot find buildh32.bat. It is there, in the samples directory.

So, I have a clear path problem here. Though I've opened the correct folder in VS Code, I have a hunch the json is somehow directing it to look for the .bat file elsewhere.

If I execute the commoand. buildh32 fivedemo. the program is built and run. So clearly the .bat file is good.

Your input would be appreciated.

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Antonio: Please explain
Posted: Tue May 19, 2020 03:47 AM

Tim,

Please open vscode and select "c:\fwh\samples" as the folder to work on from vscode

Being there, open a new terminal from vscode and select "cmd" instead of "powershell".

Then press Ctrl + Shift + B and it should work fine. I just tested it here with success.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Antonio: Please explain
Posted: Tue May 19, 2020 06:56 PM

Thank you. Using the New Terminal with CMD was the missing step. It now works.

The other thing people need to know is to use the proper build script. In my case, Buildh32.bat is used to build with Harbour/Microsoft VC++

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