Page 1 of 2
GOT 64 Bit Version running
Posted: Mon Sep 16, 2024 3:14 pm
by Jimmy
hi
GOT 64 Bit Version running
i use this *.HBP (add -lDrXlsx64 and my dualgrid.rc)
Code: Select all | Expand
-gui -mt
DUALGRID.PRG
TGRID.PRG
HB_FUNC.PRG
SHELLAPP.PRG
HBEJECT.PRG
CODEPAGE.PRG
IPHONE.PRG
PROPERTY.PRG
EVERYTH.PRG
ABOUT.PRG
DLGREPL.PRG
XBROWSE.PRG
YBROWSE.PRG
HBSTACK.PRG
PICKLIST.PRG
FWMODIFY.PRG
TCALENDA.PRG
FWREGDB.PRG
XBROWSER.PRG
DATAROW.PRG
ADO.prg
XLSWRITE.PRG
xmlview.prg
-workdir=
-optim-
-ldflag+=-aa
-Ic:\fwh64\include
-Lc:\fwh64\lib
-lFiveH64
-lFiveHC64
-lDrXlsx64
-lgdiplus
-lole32
-lOleDlg
-lversion
-lucrt
-luxtheme
xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
hbodbc.hbc
-ldflag=/NODEFAULTLIB:msvcrt
-ldflag+=/NODEFAULTLIB:libucrt
hbziparc.hbc
dualgrid.rc
but still have a Question : why does App have NO ICON
no Resource at all
and it is much smaller than *.MAK VERION ? 7.2 MB vs. 10.7 MB
GOT 64 Bit Version running
Posted: Mon Sep 16, 2024 3:17 pm
by Jimmy
hi,
OK GOT it
have include *.RC into *.HBP
Re: GOT 64 Bit Version running
Posted: Mon Sep 16, 2024 6:54 pm
by Antonio Linares
very good!
Re: GOT 64 Bit Version running
Posted: Wed Sep 18, 2024 10:54 am
by Jimmy
hi,
i got it run under 64 BIt but same CODE give me Error using 32 Bit
R:\Temp\hbmk_emyvx0.dir\HB_FUNC.c:
Warning W8027 x:\bcc770\INCLUDE\windows\sdk\shobjidl_core.h 18147: Functions containing for are not expanded inline
+ Full parser context
+ HB_FUNC.PRG, line 48: #include x:\bcc770\INCLUDE\windows\sdk\ShlObj.h
+ x:\bcc770\INCLUDE\windows\sdk\ShlObj.h, line 111: #include x:\bcc770\INCLUDE\windows\sdk\shobjidl.h
+ x:\bcc770\INCLUDE\windows\sdk\shobjidl.h, line 776: #include x:\bcc770\INCLUDE\windows\sdk\shobjidl_core.h
Warning W8027 x:\bcc770\INCLUDE\windows\sdk\shlobj_core.h 3503: Functions containing while are not expanded inline
+ Full parser context
+ HB_FUNC.PRG, line 48: #include x:\bcc770\INCLUDE\windows\sdk\ShlObj.h
+ x:\bcc770\INCLUDE\windows\sdk\ShlObj.h, line 113: #include x:\bcc770\INCLUDE\windows\sdk\shlobj_core.h
*** 1 errors in Compile ***
hbmk2[testx32]: Error: Running C/C++ compiler. 2
i do not understand why
ShlObj.h, under 32 Bit, give me a Error ... it work under 64 BIt
Re: GOT 64 Bit Version running
Posted: Wed Sep 18, 2024 11:02 am
by Enrico Maria Giordano
Sorry, I can't see any errors, only warnings you can safely ignore.
Re: GOT 64 Bit Version running
Posted: Wed Sep 18, 2024 4:21 pm
by Jimmy
Enrico Maria Giordano wrote:Sorry, I can't see any errors, only warnings you can safely ignore.
YES, only 2 Warning but on End i got
hbmk2[testx32]: Error: Running C/C++ compiler. 2
and NO 32 Bit *.EXE are generated
i use this *.HBP
-gui -mt
-w-inl
DUALGRID.PRG
TGRID.PRG
HB_FUNC.PRG
SHELLAPP.PRG
HBEJECT.PRG
CODEPAGE.PRG
IPHONE.PRG
PROPERTY.PRG
EVERYTH.PRG
ABOUT.PRG
DLGREPL.PRG
XBROWSE.PRG
YBROWSE.PRG
HBSTACK.PRG
PICKLIST.PRG
FWMODIFY.PRG
TCALENDA.PRG
FWREGDB.PRG
XBROWSER.PRG
DATAROW.PRG
ADO.prg
XLSWRITE.PRG
xmlview.prg
dualgrid.rc
-Ix:\fwh\include
-Lx:\fwh\lib
-lFiveH32
-lFiveHC32
-lDrXlsx
-lgdiplus
-lole32
-lOleDlg
-lversion
-lucrt
-luxtheme
#ficheros de configuraci├│n debido a las funciones usadas
xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbfoxpro.hbc
-ldflag=/NODEFAULTLIB:msvcrt
-ldflag+=/NODEFAULTLIB:libucrt
Re: GOT 64 Bit Version running
Posted: Wed Sep 18, 2024 4:24 pm
by Antonio Linares
Please try with:
-lcflag=-w-8027
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 4:10 am
by Jimmy
hi Antonio,
Antonio Linares wrote:-lcflag=-w-8027
THX for Advice.
i did it, but i got same Error with
ShlObj.h
i use this *.HBP for Borland 32 bits
Code: Select all | Expand
-gui -mt
-w-inl
-lcflag=-w-8027
DUALGRID.PRG
ABOUT.PRG
ADO.PRG
CODEPAGE.PRG
DATAROW.PRG
DLGREPL.PRG
EVERYTH.PRG
FWMODIFY.PRG
FWREGDB.PRG
HBEJECT.PRG
HBSTACK.PRG
HB_FUNC.PRG
IPHONE.PRG
PGSUPORT.PRG
PICKLIST.PRG
PROPERTY.PRG
SHELLAPP.PRG
TCALENDA.PRG
TGRID.PRG
XBROWSE.PRG
XBROWSER.PRG
XLSWRITE.PRG
YBROWSE.PRG
-Ic:\fwh\include
-Lc:\fwh\lib
-lfiveh
-lfivehc
-luxtheme
hbct.hbc
xhb.hbc
hbziparc.hbc
Warning W8027 c:\bcc770\INCLUDE\windows\sdk\shobjidl_core.h 18147: Functions containing for are not expanded inline
+ Full parser context
+ HB_FUNC.PRG, line 48: #include c:\bcc770\INCLUDE\windows\sdk\ShlObj.h
+ c:\bcc770\INCLUDE\windows\sdk\ShlObj.h, line 111: #include c:\bcc770\INCLUDE\windows\sdk\shobjidl.h
+ c:\bcc770\INCLUDE\windows\sdk\shobjidl.h, line 776: #include c:\bcc770\INCLUDE\windows\sdk\shobjidl_core.h
Warning W8027 c:\bcc770\INCLUDE\windows\sdk\shlobj_core.h 3503: Functions containing while are not expanded inline
+ Full parser context
+ HB_FUNC.PRG, line 48: #include c:\bcc770\INCLUDE\windows\sdk\ShlObj.h
+ c:\bcc770\INCLUDE\windows\sdk\ShlObj.h, line 113: #include c:\bcc770\INCLUDE\windows\sdk\shlobj_core.h
*** 1 errors in Compile ***
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 4:55 am
by Antonio Linares
Modify the code this way:
#pragma warn -8027
#include <windows/sdk/ShlObj.h>
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 5:08 am
by Jimmy
hi Antonio,
can is use *.ch from 64 BIt Version of BCC7764 for 32 Bit Version BCC77 ?
the 32 Bit Version of ShObjIdl.h is 1104.293 while 64 Bit Version is 272.111
Modify the code this way:
#pragma warn -8027
#include <windows/sdk/ShlObj.h>
which File should i modify
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 5:14 am
by Antonio Linares
+ HB_FUNC.PRG, line 48: #include c:\bcc770\INCLUDE\windows\sdk\ShlObj.h
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 7:41 am
by Enrico Maria Giordano
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 2:35 pm
by Jimmy
hi Antonio,
Antonio Linares wrote:+ HB_FUNC.PRG, line 48: #include c:\bcc770\INCLUDE\windows\sdk\ShlObj.h
does make same Error / Warnimg
Code: Select all | Expand
Warning W8027 c:\bcc770\INCLUDE\windows\sdk\shobjidl_core.h 18147: Functions containing for are not expanded inline
+ Full parser context
+ HB_FUNC.PRG, line 48: #include c:\bcc770\INCLUDE\windows\sdk\ShlObj.h
+ c:\bcc770\INCLUDE\windows\sdk\ShlObj.h, line 111: #include c:\bcc770\INCLUDE\windows\sdk\shobjidl.h
+ c:\bcc770\INCLUDE\windows\sdk\shobjidl.h, line 776: #include c:\bcc770\INCLUDE\windows\sdk\shobjidl_core.h
Warning W8027 c:\bcc770\INCLUDE\windows\sdk\shlobj_core.h 3503: Functions containing while are not expanded inline
+ Full parser context
+ HB_FUNC.PRG, line 48: #include c:\bcc770\INCLUDE\windows\sdk\ShlObj.h
+ c:\bcc770\INCLUDE\windows\sdk\ShlObj.h, line 113: #include c:\bcc770\INCLUDE\windows\sdk\shlobj_core.h
*** 1 errors in Compile ***
when include in HB.FUNC.PRG
i got much more Errors
Turbo Incremental Link 6.97 Copyright (c) 1997-2022 Embarcadero Technologies, Inc.
Error: Unresolved external '__streams' referenced from C:\HARBOUR\LIB\WIN\BCC\HBVMMT.LIB|fm
Error: Unresolved external '_HB_FUN_VAR2CHAR' referenced from R:\TEMP\HBMK_5XHQ19.DIR\DATAROW.OBJ
Error: Unresolved external '_HB_FUN_CTRLS_COLORS' referenced from R:\TEMP\HBMK_5XHQ19.DIR\ADO.OBJ
Error: Unresolved external '_HB_FUN_MAKETOP' referenced from R:\TEMP\HBMK_5XHQ19.DIR\PICKLIST.OBJ
Error: Unresolved external '_HB_FUN_FILEONLY' referenced from R:\TEMP\HBMK_5XHQ19.DIR\FWMODIFY.OBJ
Error: Unresolved external '_HB_FUN_MY_DIRECTORY' referenced from R:\TEMP\HBMK_5XHQ19.DIR\TGRID.OBJ
Error: Unresolved external '_HB_FUN_ENDWITHSLASH' referenced from R:\TEMP\HBMK_5XHQ19.DIR\TGRID.OBJ
Error: Unresolved external '_HB_FUN_PATHONLY' referenced from R:\TEMP\HBMK_5XHQ19.DIR\YBROWSE.OBJ
Error: Unresolved external '_HB_FUN_ATINSIDE' referenced from R:\TEMP\HBMK_5XHQ19.DIR\YBROWSE.OBJ
Error: Unresolved external 'SQLAllocEnv' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLAllocConnect' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLExecDirect' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLDriverConnect' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLConnect' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLAllocStmt' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLDescribeCol' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLError' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLPrepare' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLFreeStmt' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLDisconnect' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLFreeConnect' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLFreeEnv' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLNumResultCols' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLFetch' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLGetInfo' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLSetConnectOption' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLSetStmtOption' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLGetConnectOption' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLGetStmtOption' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLSetCursorName' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLGetCursorName' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLRowCount' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLCancel' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLTransact' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLSetParam' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLExecute' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLParamData' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLPutData' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLExtendedFetch' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLSetPos' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLPrimaryKeys' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLGetDiagRec' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLStatistics' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLColumns' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLSpecialColumns' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLTables' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external 'SQLGetData' referenced from C:\FWH\LIB\FIVEHC.LIB|odbc32x
Error: Unresolved external '_HB_FUN_COPYTOCLIPBOARD' referenced from R:\TEMP\HBMK_5XHQ19.DIR\ADO.OBJ
Error: Unable to perform link
hbmk2[test32]: Error: Running linker. 2
hbmk2: Error: Referenced, missing, but unknown function(s): VAR2CHAR(),
CTRLS_COLORS(), MAKETOP(), FILEONLY(), MY_DIRECTORY(), ENDWITHSLASH(),
PATHONLY(), ATINSIDE(), COPYTOCLIPBOARD()
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 2:39 pm
by Enrico Maria Giordano
Jimmy, can you provide a very little sample showing the error, please?
Re: GOT 64 Bit Version running
Posted: Thu Sep 19, 2024 9:17 pm
by Antonio Linares
Jimmy,
Are you linking odbc32.lib ?