Antonio: Differences between BORLAND and VCC
Antonio: Differences between BORLAND and VCC
1. If i use cGetDir(..) and choose a USB-drive for camera-cards BUT WITHOUT any inserted camera-card, the programm crashes in some times!
2. When using shadow() in MS-VC the shadow are bigger then in Borland and on some dialogs the wide (height?) of the dialog are cutting a little on right(bottom?) side.
2. When using shadow() in MS-VC the shadow are bigger then in Borland and on some dialogs the wide (height?) of the dialog are cutting a little on right(bottom?) side.
Last edited by byte-one on Wed May 16, 2018 1:14 pm, edited 1 time in total.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio: cGetDir and ::shadow()
Günther,
1. Please check if a hb_out.log file is created
2. Check the manifest files embedded into the EXE
1. Please check if a hb_out.log file is created
2. Check the manifest files embedded into the EXE
Re: Antonio: cGetDir and ::shadow()
Antonio, from the first point the hb_out.log:
On second point: Same manifest in MS-VC and BorlandApplication Internal Error - C:\WGUN\GUN1\gun32.exe
Terminated at: 2018-04-23 14:22:53
Unrecoverable error 9015: Symbol item expected from hb_vmDo()
Called from ASCAN(0)
Called from OWNDFROMHWND(3695) in .\source\classes\WINDOW.PRG
Called from FWSKINBTNPAINT(72) in C:\prg_allgemein\skins.prg
Called from FWSKINBTNFOCUSED(363) in C:\prg_allgemein\skins.prg
Called from CGETDIR(0)
Re: Antonio: cGetDir and ::shadow()
In the meantime i made some tests. No referring with ::shadow!
Please see the picture. On left side compiled with MS-VC, on right side compiled with Borland. It seems, only on dialogs from code!?
Please see the picture. On left side compiled with MS-VC, on right side compiled with Borland. It seems, only on dialogs from code!?
Code: Select all
function dlg_test()
local oDlg, oFont, oMemo, oFile, oBtnok, oBtncancel, cFile := space(50), uTemp := " "
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0, -10
DEFINE DIALOG oDlg FROM 50, 50 TO 250, 450 PIXEL TITLE "Test" FONT oFont
@ 4, 3 GET oMemo VAR uTemp MULTILINE OF oDlg PIXEL SIZE 100, 100 FONT oFont
@ 0, 0 GET oFile VAR cFile OF oDlg PIXEL SIZE 100, 12 FONT oFont
@ 0,0 BUTTON oBtnOk PROMPT "OK" SIZE 46, 13 ACTION oDlg:End()
@ 0,0 BUTTON oBtnCancel PROMPT "&Zurück" SIZE 46, 13 ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
ON INIT ( ;
oMemo:SetSize( oDlg:nWidth() - 17, oDlg:nHeight() - 77 ),;
oMemo:SetSel( 0,0 ), ;
oFile:nTop := oDlg:nHeight() - 64,;
oFile:nLeft := 6,;
oBtnOk:nTop := oDlg:nHeight() - 64,;
oBtnOk:nLeft := oDlg:nWidth() - 197,;
oBtnCancel:nTop := oDlg:nHeight() - 64,;
oBtnCancel:nLeft := oDlg:nWidth() - 104;
)
oFont:End()
return NIL
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio: cGetDir and ::shadow()
Please inspect both EXEs using this tool:
https://bitbucket.org/fivetech/fivewin- ... peinfo.exe
look for differences in the embedded manifest files and/or resources
https://bitbucket.org/fivetech/fivewin- ... peinfo.exe
look for differences in the embedded manifest files and/or resources
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio: cGetDir and ::shadow()
1. looks like memory corruption
Re: Antonio: cGetDir and ::shadow()
Thanks Antonio.
1. The error is present on all machines.
2. I inspect the files with PE but no differences. I compile with the exact same RC-File. Have you tested the code?
1. The error is present on all machines.
2. I inspect the files with PE but no differences. I compile with the exact same RC-File. Have you tested the code?
Re: Antonio: cGetDir and ::shadow()
Any news?
I found also that in dialogs from resource the height of the caption-area between MS-VC and Borland are different. Maybe different constants in the header-files from the compilers? For the moment i cannot use MS-VC.
I found also that in dialogs from resource the height of the caption-area between MS-VC and Borland are different. Maybe different constants in the header-files from the compilers? For the moment i cannot use MS-VC.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Antonio: cGetDir and ::shadow()
We are checking it but can't see where the difference comes from yet
Re: Diffferences
Hello to all. I not can found any reason for the differences on the both compilers. Can please several from us test the above code with VCC and report!?
Re: Antonio: Differences between BORLAND and VCC
Gunther, I tested your sample also and I continue to investigate why
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: Antonio: Differences between BORLAND and VCC
To All
I have tried to create a script to compile MSVC 2017 using BuildxM ( xHarbour ) as my guide ( as you may remember ), unfortunately I gave up because I could not get any script or suggestions from the forum to cleanly compile tutor01.prg.
If anyone could post a working MSVC\xHarbour script .. I would be glad to help in comparing the difference between the two compilers.
Rick Lipkin
I have tried to create a script to compile MSVC 2017 using BuildxM ( xHarbour ) as my guide ( as you may remember ), unfortunately I gave up because I could not get any script or suggestions from the forum to cleanly compile tutor01.prg.
If anyone could post a working MSVC\xHarbour script .. I would be glad to help in comparing the difference between the two compilers.
Rick Lipkin
Re: Antonio: Differences between BORLAND and VCC
Rick,
I do not use Borland, but I do create two builds of my primary application.
1). xHarbour ( .com / xBuilder with Pelles C ) using the version from 11/2015
2). Microsoft Visual Studio 2017 with Harbour libraries
Option 1 is only used by people who have ADS Version 7 or 8 and I have the proper libs for those in xHarbour.
Option 2 is for everyone else.
I have never tried Microsoft Visual C++ with xHarbour. I once was going to and was told there were no MSVC compatible libraries available for the commercial product.
I can assure you that Harbour and Microsoft Visual C++ work very well with FWH, and almost all of my clients use that version.
I should note: Visual Studio Community 2017 is FREE and quite capable of building any application. Antonio provides Harbour also for free. If you were to go that route, you would have no problem getting up and running. I actually do the builds in Visual Studio, and you can actually incorporate your editor of choice in the IDE ( I use UE Studio ).
Tim
I do not use Borland, but I do create two builds of my primary application.
1). xHarbour ( .com / xBuilder with Pelles C ) using the version from 11/2015
2). Microsoft Visual Studio 2017 with Harbour libraries
Option 1 is only used by people who have ADS Version 7 or 8 and I have the proper libs for those in xHarbour.
Option 2 is for everyone else.
I have never tried Microsoft Visual C++ with xHarbour. I once was going to and was told there were no MSVC compatible libraries available for the commercial product.
I can assure you that Harbour and Microsoft Visual C++ work very well with FWH, and almost all of my clients use that version.
I should note: Visual Studio Community 2017 is FREE and quite capable of building any application. Antonio provides Harbour also for free. If you were to go that route, you would have no problem getting up and running. I actually do the builds in Visual Studio, and you can actually incorporate your editor of choice in the IDE ( I use UE Studio ).
Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: Antonio: Differences between BORLAND and VCC
Tim or Anyone
I have downloaded the MSVC2017 32 bit Command line Compiler ( from Mel's site .. you do not need to install Visual Studio )
And the matching xHarbourM for MSVC2017
I would appreciate if anyone has a batch file ( like buildxm.bat ) to be able to compile tutor01.prg ... here are my file locations:
c:\MSVC2017
c:\Fwh1707
c:\XharbourM
Thanks
Rick Lipkin
I have downloaded the MSVC2017 32 bit Command line Compiler ( from Mel's site .. you do not need to install Visual Studio )
And the matching xHarbourM for MSVC2017
I would appreciate if anyone has a batch file ( like buildxm.bat ) to be able to compile tutor01.prg ... here are my file locations:
c:\MSVC2017
c:\Fwh1707
c:\XharbourM
Thanks
Rick Lipkin
Re: Antonio: Differences between BORLAND and VCC
compiled with Harbour + Fivewin 18.03 and GCC 7.3 32 bit
compiled with Harbour + Fivewin 18.03 and GCC 7.3 64 bit
regards
compiled with Harbour + Fivewin 18.03 and GCC 7.3 64 bit
regards