DLLs, import? passing on a pointer?

  • Thread starter Thread starter jodleren
  • Start date Start date
J

jodleren

Hi all

Is there an option to import the interface of a DLL?

I am using iButtons from Maxim (and Dallas), for which we have the
TMEX interface IBFS32.dll
There are some 100 functions in there, is there a way to get them all
at once?

I have tried to use a few for testing, C# is still causing me problems

Like:

ret = TMRom(result, ref StateBuff, ref ROM);
The 2 latter are strings / arrays in memory, which I should create,
then pass the pointer in. I have tried * and &, but I cannot get it to
work.
The delphi declaration is:

Function TMRom(H: Longint; P: Pointer; D: Pointer): Smallint;StdCall;
ret := TMRom(Hndl, @StateBuff, @ROM);



Sonnich
 
Is there an option to import the interface of a DLL?

I am using iButtons from Maxim (and Dallas), for which we have the
TMEX interface IBFS32.dll
There are some 100 functions in there, is there a way to get them all
at once?

I have tried to use a few for testing, C# is still causing me problems

Like:

ret = TMRom(result, ref StateBuff, ref ROM);
The 2 latter are strings / arrays in memory, which I should create,
then pass the pointer in. I have tried * and&, but I cannot get it to
work.
The delphi declaration is:

Function TMRom(H: Longint; P: Pointer; D: Pointer): Smallint;StdCall;
ret := TMRom(Hndl, @StateBuff, @ROM);

There are no shortcuts.

In worst case you could create a mixed mode C++ wrapper.

Arne
 
Back
Top