Registered: Aug 2001
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.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

jcity444Rank #3,217 · 446 reputationPosted Dec 24, 2003, 11:43 AM EST
kovanRank #1,453 · 1.1K reputationPosted Dec 24, 2003, 2:00 PM EST
tamnt715200416 reputationPosted Dec 25, 2003, 8:50 PM EST