The problem is that i don't know how to dynamically load an unmanaged dll..
I read about mixing unmanaged and managed on the dll, so theorically i can load the "managed" dll with LINQ, but the problem is to prepare accordingly the dll, since i want that the implementation part is in native C++.
What i was doing is this (this is the header):
#include <string>
using namespace std;
#pragma unmanaged
class SUhiddenClass
{
public:
string Test();
};
#pragma managed
interface class IWrapper
{
property SUhiddenClass hc;
};
public class MyWrapper : public IWrapper
{
private:
SUhiddenClass m_hc;
public:
MyWrapper();
property SUhiddenClass hc
{
SUhiddenClass get(){return m_hc};
SUhiddenClass set(SUhiddenClass value){m_hc = value};
}
};
So i thought that in some way i can use MyWrapper.. or the interface IWrapper from C# to call Test function.. but obviously it doesn't compile because property declaration can be done only in managed type.
I'm really lost...

New Topic/Question
Reply




MultiQuote





|