Al compilar con FWH64 y VS2013 , obtengo un error con la función CallDll() y
y también con FwCallDll()
Alguna sugerencia ?
Saludos
// Copyright FiveTech 1993-08 - 2nd version with no data types passed in
// modified by Roger Seiler with FiveTech authorization; this does not require
// any part of FWH and can operate solely with xHarbour.
// DLLxHb.ch - enables using same syntax with xHb's DLLCALL as with FWH's DLL32
#ifndef _DLLxHb_CH
#define _DLLxHb_CH
#define DC_CALL_STD 0 // 0x0020
#translate NOREF([@]<x>) => <x>
//----------------------------------------------------------------------------//
#xcommand DLLxHb FUNCTION <FuncName>( [ <uParam1> ] [, <uParamN> ] ) ;
LIB <*DllName*> ;
=> ;
function <FuncName>( [NOREF(<uParam1>)] [,NOREF(<uParamN>)] ) ;;
local hDLL := If( ValType( <DllName> ) == "N", <DllName>, LoadLibrary( <(DllName)> ) ) ;;
local uResult := 0 ;;
if Abs( hDLL ) > 32 ;;
uResult = CallDll( hDLL, DC_CALL_STD, <(FuncName)> [,<uParam1>] [,<uParamN>] ) ;;
If( ValType( <DllName> ) == "N",, FreeLibrary( hDLL ) ) ;;
else ;;
end ;;
return uResult
// This previous "else" code gpf's, even with FWH...
// If( ValType( <DllName> ) == "C", <DllName>, Str( <DllName> ) ) ) ;;
// MsgAlert( "Error code: " + LTrim( Str( hDLL ) ) + " loading " + ;
DLLxHb FUNCTION RMC_CREATECHART( ; // RMC_CreateChart
nParentHndl, ; // hWnd
nCtrlId, ;
nX, ;
nY, ;
nWidth, ;
nHeight, ;
nBackColor, ;
nCtrlStyle, ;
nExportOnly, ;
sBgImage, ;
sFontName, ;
nToolTipWidth, ;
nBitmapBKColor ;
) LIB hRmcDll
nRetVal = RMC_CreateChart( ;
oWnd:hWnd , ; // nParentHandle
ID_RMC1 , ; // nCtrlID
0 , ; // nTop
0 , ; // nLeft
600 , ; // nWidth
450 , ; // nHeight
ColorAzure , ; // nBackColor
RMC_CTRLSTYLEFLAT , ; // nCtrlStyle
False , ; // nExportOnly
"" , ; // sBgImage
"" , ; // sFontName
20 , ; // nToolTipwidth
0 ; // nBitmapBKColor
)
//----------------------------------------------------------------------------//
A 64-bit process can access a 32-bit DLL across a process boundary if the 32-bit DLL is loaded into a separate 32-bit surrogate process space, and the application makes use of the built-in IPC mechanisms that support data exchange between 32-bit and 64-bit processes.
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 53 guests