DLLs, import? passing on a pointer?

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top