Página 1 de 1

Para Martin del Angel

Publicado: Mié Dic 12, 2012 12:06 am
por Gabo
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

Para Martin del Angel

Publicado: Mié Dic 12, 2012 2:57 am
por Martin Del Angel
On 12/11/2012 5:06 PM, Gabriel Ornelas wrote:
> 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
Gracias Gabriel.
Ya lo habia resuelto.
Puedes ver el post en el Foro Pro
En ese código que muestras , estas incluyendo la libreria hbxpp.lib en
el proyecto ?
Saludos

Para Martin del Angel

Publicado: Mié Dic 12, 2012 10:35 pm
por Gabo
No incluyo la libreria de xHarbour. unicamente uso Harbour