FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 16.03 32 BIT
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Tue Apr 19, 2016 06:38 AM

ok

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Tue Apr 19, 2016 07:01 AM

sent

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Tue Apr 26, 2016 07:54 AM
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 (fw): Select all Collapse
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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Tue Apr 26, 2016 09:18 AM

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:

viewtopic.php?f=17t=28723start=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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Thu May 05, 2016 08:32 AM

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 & MSVC 2022 & FWH 23.06
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: FWH 16.03 32 BIT
Posted: Thu May 05, 2016 06:38 PM

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
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: FWH 16.03 32 BIT
Posted: Thu May 05, 2016 07:18 PM

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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 06:45 AM
Hi Antonio,

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

Code (fw): Select all Collapse
#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 (fw): Select all Collapse
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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 07:22 AM

Hakan,

What exact code do you have here ?

C:\PrgW\Icra\MASTER.PRG 2109

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 07:30 AM
Antonio,

As you can see above.

Code (fw): Select all Collapse
extern "C" {
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 07:41 AM

Hakan,

Please try to remove

extern "C" {

and its }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 08:01 AM
Antonio,

Code (fw): Select all Collapse
FILE * _iob[] = { stdin, stdout, stderr };


Error
Code (fw): Select all Collapse
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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 08:52 AM

Try it this way:

FILE * _iob[ 3 ];

_iob[ 0 ] = stdin;
_iob[ 1 ] = stdout;
_iob[ 2 ] = stderr;

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 09:00 AM
Antonio,


Code (fw): Select all Collapse
#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 (fw): Select all Collapse
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 & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 16.03 32 BIT
Posted: Fri May 06, 2016 10:38 AM
Hakan,

Code (fw): Select all Collapse
#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