I import several unmanaged DLLs into C ++, but the imported DLLs have the same method name, which causes problems with the compiler. For instance:
unsafe class Myclass { [DllImport("myfirstdll.dll")] public static extern bool ReturnValidate(long* bignum); [DllImport("myseconddll.dll")] public static extern bool ReturnValidate(long* bignum); public Myclass { int anum = 123; long passednum = &anum; ReturnValidate(passsednum); } }
Now, what I would like to do is rename the method on import. Sort of:
[DllImport("myseconddll.dll")] public static extern bool ReturnValidate(long bignum) AS bool ReturnValidate2(long bignum);
Is it possible?
wonea source share