Para Martin del Angel
Publicado: Mié Dic 12, 2012 12:06 am
Martin
Yo uso PageScript como DLL con Harbour y para llamar la dll
#ifdef __XHARBOUR__
#xtranslate Method <Classname>:<x> => Method <x>
#include "hbclass.ch"
#include "Dll.ch"
#else
#define DLL_STDCALL NIL
#include "xailer.ch"
#include "Dll.ch"
#endif
::hDll:= DllLoad("PScript.dll") // Handle of the .DLL
IF Empty( ::hDll )
::nError := PSE_DLLNOTLOADED // DLL not loaded error
else
::nError := DllCall(::hDll, DLL_STDCALL, "PSInit")
if ::nError == PSE_NOERROR
DllCall(::hDll, DLL_STDCALL, "PSSetCoorSystem",PS_TOPLEFT)
endif
endif
Un Saludo
GABO
Yo uso PageScript como DLL con Harbour y para llamar la dll
#ifdef __XHARBOUR__
#xtranslate Method <Classname>:<x> => Method <x>
#include "hbclass.ch"
#include "Dll.ch"
#else
#define DLL_STDCALL NIL
#include "xailer.ch"
#include "Dll.ch"
#endif
::hDll:= DllLoad("PScript.dll") // Handle of the .DLL
IF Empty( ::hDll )
::nError := PSE_DLLNOTLOADED // DLL not loaded error
else
::nError := DllCall(::hDll, DLL_STDCALL, "PSInit")
if ::nError == PSE_NOERROR
DllCall(::hDll, DLL_STDCALL, "PSSetCoorSystem",PS_TOPLEFT)
endif
endif
Un Saludo
GABO