Registered: Aug 2001

Dec 24 2003 3:59 AM
Hi Everyone How to convert from " long &n" in C++ by System.IntPtr n. Error. I have "MyDll" c++ with function : IsFileOfType(char *st, long &n); I want to use this Function in C#. .... I use DllImport Function to load my dll. My code: [DllImport("MyDll.dll")] public extern static bool isFileOfType(string str, System.IntPtr n); But not true. please tell me Why. thank you.

Answers (3)