Calling a function with activeqt
-
hi to every one
i have a c# dll
i am load it with this code
@QAxObject *y = new QAxObject(this);
y->setControl(QString::fromUtf8("dll_name.dll"));
bool t = y->isNull();@
it is loaded successfully because t variable is false
the dll has class named myclass i want to call the functions of this class
how can i do that? -
Hi kitten,
did you read the docs? You should call "setControl":http://doc.qt.nokia.com/4.7/qaxbase.html#control-prop with a valid COM GUID or similar (look at the link) not with a dll name. QAxObject is for wrapping COM objects, not C# stuff. If the C# stuff implements a COM object, you can use it with QAxObject like "described here":http://doc.qt.nokia.com/4.7/qaxbase.html#details