>I can load the library, get the function pointers etc., but when I call a
>function in the dll, the function succeeds, but the registers in the current
>functions corrupted.
Does your function pointer type have the correct calling convention?
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
vikrantca - 05 Dec 2004 19:47 GMT
Yes, The function pointer is correct.
There are other functions (they take more parameters like char * etc.) that
work.
Different question -
When I declare double *x in managed c++ source file, is it a __nogc pointer
or a __gc pointer ?
While passing a char array to fortran dll do I need to pin the pointer ?
Thank you for your help.
vikrantca
"Mattias Sjögren" wrote:
> >I can load the library, get the function pointers etc., but when I call a
> >function in the dll, the function succeeds, but the registers in the current
[quoted text clipped - 3 lines]
>
> Mattias