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* pDocuments
= inventor.
querySubObject("Documents");
// hangs up if ( pDocuments )
{
//...
}
unk->Release();
}
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();
}
To copy to clipboard, switch view to plain text mode
Bookmarks