>[C++]
>long myFunction1(void ** parameter);
[quoted text clipped - 4 lines]
>[DllImport("MyDLL.dll")]
>public static extern long myFunction1(ref IntPtr parameter);
long in C++ becomes int in C# so you should change the return type.
> The second one has a double pointer to a structure. I think I dealed
>with the structure, but what about the double pointer ?
It depends on how the parameter is used. Is it an input or output
parameter (or both), who allocates memory etc.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Laurent - 25 Nov 2005 09:33 GMT
Hi Mattias,
Thanks for your answer. I tried to change the long parameter to int, but
I still have the same error: The code throws a
System.EntryPointNotFoundException with the following message: "Unable to
find the Entry Point "xxxx" in the DLL "xxxx.dll".
I opened a DLL using "DLL Depends 2.1"... The tool shows me the function
I would like to call with an entry point adress. Prehaps the DLL has not
been well compiled ?
I don't know what I did wrong. I tried to use an unsafe code and a
void** parameter, but the same error occured. I'll try using a C++ code to
call my DLL, just to see if I can access the function...
If anyone has an idea...
> >[C++]
>>long myFunction1(void ** parameter);
[quoted text clipped - 14 lines]
>
> Mattias