gri
6th March 2007, 14:18
Hello,
First of all: The examples of ActiveQt do all do their work :)
Now to my problem: I'm trying to access a remote application, which results in a hangup ... maybe someone can tell me why :(
The querySubObject() causes the problem ... If disableMetaObject() is set, it does not hang up .. while calling this function inventor takes up 100% cpu
CLSID clsid;
::CLSIDFromProgID(L"Inventor.Application", &clsid);
IUnknown* unk = NULL;
if ( SUCCEEDED(::GetActiveObject(clsid, NULL, &unk)) )
{
QAxObject inventor(unk);
QAxObject* pDocuments = inventor.querySubObject("Documents"); // hangs up
if ( pDocuments )
{
//...
}
unk->Release();
}
First of all: The examples of ActiveQt do all do their work :)
Now to my problem: I'm trying to access a remote application, which results in a hangup ... maybe someone can tell me why :(
The querySubObject() causes the problem ... If disableMetaObject() is set, it does not hang up .. while calling this function inventor takes up 100% cpu
CLSID clsid;
::CLSIDFromProgID(L"Inventor.Application", &clsid);
IUnknown* unk = NULL;
if ( SUCCEEDED(::GetActiveObject(clsid, NULL, &unk)) )
{
QAxObject inventor(unk);
QAxObject* pDocuments = inventor.querySubObject("Documents"); // hangs up
if ( pDocuments )
{
//...
}
unk->Release();
}