FWH 16.03 32 BIT

Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

ok
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

sent
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

Hi,

I had another problem with this combination (Harbour, MSVC 2015 and fwh 16.03)

It freezes the application when any runtime error is occured.

I have found that nExtMem freze it.

Code: Select all

function NEXTMEM()

return 0
solve the problem. It display the error description. But when I press the Quit button, application gives an error and app. is ended. (Even W10)

When i exit the application normal way (exit button or topright close button) There is not any error W10.

But in W7 there is still an error after exit.

any solution.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 16.03 32 BIT

Post by Antonio Linares »

Hakan,

You have to build and execute your app from the Visual Studio debugger. The debugger will stop where there is an error
giving you the oportunity to review the low level calls stack, etc.

Here you have a detailed guide to learn how to do it:
http://forums.fivetechsupport.com/viewt ... 23&start=0

Though the guide is for VS2013, it properly works for VSC2015. In fact I have updated it these days
as I have been using the VSC2015 debugger too
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

Hi Antonio,

I am very sorry to disturb you again.

I have built msvc 2015 and fwh 16.03 with mak file. But When I exit the program normally in w7, It gives an error. Even w10 (in my computer) it gives an error after fwh errorsysw. I think QUIT command in errorsysw.

in order to debug my application, I have done Visual Studio steps, but I could not build the exe.

I stuck in MSVC 2015 and fwh 16.03.

I could not give any new release to my customer after 16.03. I have not any error like these before msvc 2015. is it possible to run new fwh versions in msvc 2013.

Thanks,
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: FWH 16.03 32 BIT

Post by TimStone »

It is going to be in your settings in the IDE. Please look at the alternate thread I started to help with that process.

Also, be sure ALL of your libraries are built with MSVC 2015. The ones Antonio provides are, but your other libraries may have issues. Be sure you have the most current.

I only have one problem with my MSVS 2015 build and it is strange. I will find it ... I will .... but until then I use the IDE for testing, and the .bat/.mak build for distribution. Although the files are the same, the .bat/.mak executable does not have the problem. However, the IDE build is so much faster to use when making changes to my source code and testing.

BTW, that problem is this. Radio buttons and checkboxes, when clicked, are losing their associated text. That is it.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 16.03 32 BIT

Post by Antonio Linares »

Hakan,

> I have done Visual Studio steps, but I could not build the exe

What errors do you get ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

Hi Antonio,

I have a few warnings but I have solved most of errors. There is only one error.

Code: Select all

#pragma BEGINDUMP

#include <Windows.h>

extern "C" {                     // Line 2109
FILE * _iob[] = { stdin, stdout, stderr };

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}
#pragma ENDDUMP
 
error

Code: Select all

Severity    Code    Description Project File    Line    Suppression State
Error   C2059   syntax error: 'string'  IcraW   C:\PrgW\Icra\MASTER.PRG 2109    
 
There is not any error compiling with other method. (.mak) (command line)

Thanks.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 16.03 32 BIT

Post by Antonio Linares »

Hakan,

What exact code do you have here ?

C:\PrgW\Icra\MASTER.PRG 2109
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

Antonio,

As you can see above.

Code: Select all

extern "C" {
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 16.03 32 BIT

Post by Antonio Linares »

Hakan,

Please try to remove

extern "C" {

and its }
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

Antonio,

Code: Select all

FILE * _iob[] = { stdin, stdout, stderr };
Error

Code: Select all

Severity    Code    Description Project File    Line    Suppression State
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2110   
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 16.03 32 BIT

Post by Antonio Linares »

Try it this way:

FILE * _iob[ 3 ];

_iob[ 0 ] = stdin;
_iob[ 1 ] = stdout;
_iob[ 2 ] = stderr;
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: FWH 16.03 32 BIT

Post by Horizon »

Antonio,

Code: Select all

#pragma BEGINDUMP

#include <Windows.h>

FILE * _iob[ 3 ];                    

_iob[ 0 ] = stdin;                // Line 2126
_iob[ 1 ] = stdout;
_iob[ 2 ] = stderr;

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
#pragma ENDDUMP

Code: Select all

Severity    Code    Description Project File    Line    Suppression State
Error   C2040   '_iob': 'int [0]' differs in levels of indirection from 'FILE *[3]' IcraW   C:\PrgW\Icra\MASTER.PRG 2126    
Error   C2369   '_iob': redefinition; different subscripts  IcraW   C:\PrgW\Icra\MASTER.PRG 2127    
Error   C2369   '_iob': redefinition; different subscripts  IcraW   C:\PrgW\Icra\MASTER.PRG 2128    
Error   C2466   cannot allocate an array of constant size 0 IcraW   C:\PrgW\Icra\MASTER.PRG 2126    
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2126    
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2127    
Error   C2099   initializer is not a constant   IcraW   C:\PrgW\Icra\MASTER.PRG 2128    
 
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 16.03 32 BIT

Post by Antonio Linares »

Hakan,

Code: Select all

#pragma BEGINDUMP

#include <Windows.h>

FILE * __iob_func( void )
{
   static FILE * _iob[ 3 ];                    
   
   _iob[ 0 ] = stdin;                
   _iob[ 1 ] = stdout;
   _iob[ 2 ] = stderr;

   return ( FILE * ) _iob;
}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply