Hello,
I have a c++ dll which has a function like follows:
public: char const * __thiscall tov::planet::c_ovPlanetAPI::Version(void)const
How do i import this dll in a c# script?
Hello,
I have a c++ dll which has a function like follows:
public: char const * __thiscall tov::planet::c_ovPlanetAPI::Version(void)const
How do i import this dll in a c# script?
Write a C wrapper function and import that, you can’t import funny functions like this through the binding layer of .NET
Well, i used dumpbin /exports to get the undecorated name, and used it as follows to import;
[DllImport (“ovPlanet”, EntryPoint=“?Version@c_ovPlanetAPI@planet@tov@@QBEPBDXZ”)]
public static extern string Version();
it works.