Ron,

Can you post the C function declarations? That would make it easier to help you find errors. Some things you should keep in mind

- The CRT functions use the cdecl calling conventions. You should set CallingConvention.Cdecl in the fread() DllImport attribute.

- If the callback function is supposed to use the cdecl convention too, you have to fix that (which is non trivial). Delegates are marshaled to stdcall function pointers by default.

- If the third party library uses the FILE pointer internally, you have to verify that you're using the same C runtime version.


Mattias


--
Mattias Sj�gren
[EMAIL PROTECTED]

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to