I'm sorry if the question seems repeated many times here but I spent the whole day without finding a clear answer.
I'm working under Visual Studio 2010 and i'm trying to load a class defined in a DLL into Python. I saw that there's no way to do this without making a C++ wrapper (using eventually SWIG or Boost.Python). I'm not a C++ programmer and I couldn't find an easy and clear tutorial to start with, I will be grateful if you could give me a simple one.
Also, my class uses the singleton pattern that restricts its instantiation to one object like this :
MyClass* MyClass::getInstance()
{
if(instance==NULL)
instance = new MyClass();
return instance;
}
So I need to know how I can deal with this in my Python script so that I can create an instance of MyClass and access all its methods.
Thanks guys.