error of access to dll

ipaez

New Member
Hi all

I this is mi first time with used of dll , but a have a lot of troubles for make work this dll =(,
mi first trouble was i dont now how acces to the method in the dll, if have a instance ,but in this forum i found the solution with the code

define var zx as com-handle.
create "atm.iatm" zx /*atm name of the dll*/

zx:Inicializa(). /*method*/

this code send me this progress message error 5893 say about the register the dll but this solution dont work =(

what can i do for work with this dll.
 
Hi,

I don't know if the way you try to access your DLL is the right one...

Here is how I do : I declare the DLL methods into my .p file as "EXTERNAL" and I specify its parameters.

Here's an example with my DLL written in C++ :
Code:
PROCEDURE initSess EXTERNAL "maDLL.dll" CDECL PERSISTENT:
  DEFINE INPUT PARAMETER a1 AS CHARACTER.
  DEFINE INPUT PARAMETER a2 AS LONG.
END PROCEDURE.

Then I call the procedure as a "normal" Progress one, with RUN...

Hope that helps !

Julien
 
Back
Top