MSVC 2017 Try

Re: MSVC 2017 Try

Postby Horizon » Fri Mar 24, 2017 8:24 pm

Hi Antonio,

Nighmare is back.

My next error :

Windows XP : As far as I see, There is not any problem.

Windows 7 : 1) The error is that when I quit from my application (not QUIT command, normally RETURN command in main procedure), after 1-10 second windows says "IcraW.exe has stopped working"

2) Same error occurs when pressing quit button in errordialog if any error occurs.

Windows 10 : 1) There is not any error when exit from my application normally.
2) Same error occurs when pressing quit button in errordialog if any error occurs like w7.



Explanation error when pressing quit button in Error dialog (Errsysw)

First, I have not any change in Errsysw. I used to it with default usage. I have not linked from my mak file.

After this error, I have changed like below and add my mak file.
Code: Select all  Expand view
  if lRet == nil .or. ( !LWRunning() .and. lRet )
      SET RESOURCES TO
      ErrorLevel( 1 )
      // Add these lines if using MDI child windows with dialogboxes
      // for n = 1 to Len( GetAllWin() )
      //    if ValType( GetAllWin()[ n ] ) == "O"
      //       GetAllWin()[ n ]:UnLink()
      //    endif
      // next
      ? "BEFORE QUIT"
      QUIT              // must be QUIT !!!
      ? "AFTER QUIT"
   endif


When I press QUIT button. Firstly, it says BEFORE QUIT, then exit programs, then windows says "IcraW.exe has stopped working"

When you read my previous link, thats why gave up MSVC 2015.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Antonio Linares » Sat Mar 25, 2017 4:46 am

regards, saludos

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

Re: MSVC 2017 Try

Postby Horizon » Sat Mar 25, 2017 11:17 am

Hi Antonio,

Can you explain more? I could not found win-make.exe

or you can build these libs ?

Thanks,


Antonio Linares wrote:Building Harbour 32 bits with VSC2017

go32.bat
Code: Select all  Expand view
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
win-make.exe
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Horizon » Sat Mar 25, 2017 11:19 am

Hi,

I have tried and same errors.

I am trying to build ssl libs now



Antonio Linares wrote:Hakan,

Please try with this new Harbour for VSC2017:

https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/Harbour_vsc2017_32bits_20170325.zip
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Antonio Linares » Sat Mar 25, 2017 11:54 am

Here you have win-make.exe

https://github.com/harbour/core

You have to pull Harbour core from its repository
regards, saludos

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

Re: MSVC 2017 Try

Postby Horizon » Sat Mar 25, 2017 12:24 pm

:?

Antonio Linares wrote:Here you have win-make.exe

https://github.com/harbour/core

You have to pull Harbour core from its repository
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Horizon » Sat Mar 25, 2017 3:35 pm

Hi Antonio,

I have downloaded win-make.exe

it needs mak file.

Can you please explain more? Which directory should i copy go32.bat to run.




Horizon wrote::?

Antonio Linares wrote:Here you have win-make.exe

https://github.com/harbour/core

You have to pull Harbour core from its repository
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Antonio Linares » Sun Mar 26, 2017 8:18 am

Hakan,

You have to download Harbour from its repository.

I use TortoiseGit to do it. You may also directly download the repository code from here:
https://github.com/harbour/core/archive/master.zip

Then you can use my provided go.bat to build it. if you want to build a certain lib, then
go to its folder, in example: c:\harbour\contrib\hbssl and run the go.bat from there

go.bat
Code: Select all  Expand view
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
c:\harbour\bin\hbmk2 hbssl
regards, saludos

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

Re: MSVC 2017 Try

Postby Horizon » Sun Mar 26, 2017 8:29 am

Hi Antonio,

I think I have found the problem.

When I compiled my application, Compiler gives this error in both MSVC 2015 and MSVC 2017.

Code: Select all  Expand view
hbssl.lib(ssl.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _app_stdin


One year ago, you send below code to pass this error.
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32188&start=15

Code: Select all  Expand view
#pragma BEGINDUMP

#include <Windows.h>

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

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}

#pragma ENDDUMP


The compiler pass this error with this code. Because of some error, I gave up the migrate to MSVC 2015.

Now, This errors occurs in MSVC 2017 with above code. (to pass this compiler error)

I have erased this code and ALL RUNTIME ERRORS GONE. but compiler error gives same error. but application run good.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Antonio Linares » Sun Mar 26, 2017 8:44 am

If the compiler is giving an error, how are you able to build the app ?
regards, saludos

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

Re: MSVC 2017 Try

Postby Horizon » Sun Mar 26, 2017 9:00 am

Antonio,

I have deleted all my .obj, .c and .exe files and build it.

exe is created.

link.log is
Code: Select all  Expand view
FiveH32.lib(TGET.obj) : warning LNK4006: _HB_FUN_TGET zaten TGet.obj üzerinde tanımlandı; ikinci tanımlama yoksayıldı
FiveH32.lib(TGET.obj) : warning LNK4006: _HB_FUN_SETGETCOLORFOCUS zaten TGet.obj üzerinde tanımlandı; ikinci tanımlama yoksayıldı
FiveH32.lib(TGET.obj) : warning LNK4006: _HB_FUN_POPUPBROWSE zaten TGet.obj üzerinde tanımlandı; ikinci tanımlama yoksayıldı
   IcraW.lib kitaplığı ve IcraW.exp nesnesi oluşturuluyor
hbssl.lib(ssl.obj) : error LNK2019: Çözümlenmemiş dış sembol ___iob_func, _app_stdin işlevinde başvurdu
IcraW.exe : warning LNK4088: /FORCE seçeneği nedeniyle görüntü üretiliyor; görüntü çalışmayabilir


Sorry for language, I could not change the error display language in msvc 2017.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Antonio Linares » Sun Mar 26, 2017 10:42 am

I guess the EXE is created as you are using /FORCE flag

Is the EXE properly working ? If such function gets ever called, the EXE may GPF
regards, saludos

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

Re: MSVC 2017 Try

Postby Antonio Linares » Sun Mar 26, 2017 6:09 pm

FWH + VSC2017 is working fine here :-)

Image
regards, saludos

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

Re: MSVC 2017 Try

Postby Horizon » Sun Mar 26, 2017 7:05 pm

Hi Antonio,

working fine for me too.

It was my mistake. wrong hbssl.lib was added to mak file. it is ok now.

Thank you for all.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MSVC 2017 Try

Postby Antonio Linares » Sun Mar 26, 2017 7:44 pm

very good :-)
regards, saludos

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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], karinha and 116 guests