In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Para Martin del Angel

Foro público de Xailer en español
Responder
Gabo
Mensajes: 104
Registrado: Mié Oct 27, 2010 1:36 am

Para Martin del Angel

Mensaje 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
Martin Del Angel
Mensajes: 360
Registrado: Mié Dic 03, 2008 5:05 am

Para Martin del Angel

Mensaje 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
Gabo
Mensajes: 104
Registrado: Mié Oct 27, 2010 1:36 am

Para Martin del Angel

Mensaje por Gabo »

No incluyo la libreria de xHarbour. unicamente uso Harbour
Responder