Contributions
Re: Automate AQtime via COM ---- Calls to OpenProject failed
Could you please send us your application that works with AQtime via COM directly via theContact Supportform? We will look into it. Now, I have already copied this post to Contact Supportwith the application file. Probably, you are working with an invisible instance of the tool. You need to assign 'true' to the 'Visible' property of the 'IAQtimeManager' interface implemented by the AQtime manager. Is there a 'Visible' property of the 'IAQtimeManager' interface? I don't see it. Most probably, AQtime is working in the Silent mode. How to change to other mode ?14 years agoPlace AQtime QuestionsAQtime Questions1.8KViews0likes0CommentsAutomate AQtime via COM ---- Calls to OpenProject failed
I'm using C++ trying to automate AQtime by means ofIntegrationManager. Unfortunately, I failed to open a project or create a new project throughNewProjectFromModule.Here is the code: IAQtimeManager* aqTimeManager = NULL; hr = CoCreateInstance( clsid, NULL, CLSCTX_LOCAL_SERVER, __uuidof(IAQtimeManager) , (void**)&aqTimeManager ); IaqTimeIntegrationSupportManager* IntergrationManager = NULL; hr = aqTimeManager->get_IntegrationManager( &IntergrationManager ); VARIANT_BOOL result = VARIANT_FALSE; //NewProjectFromModulereturn S_OK but the result isVARIANT_FALSE hr = IntergrationManager->NewProjectFromModule( L"e:\\Work\\Allocation.exe", &result ); //OpenProject return S_OK and the result isVARIANT_TRUE, but actually the project doesn't appear in the AQTime window // hr = IntergrationManager->OpenProject( L"E:\\Work\\Allocation_exe.aqt" , &result ); //SelectProfilerreturn S_OK but the result isVARIANT_FALSE hr = IntergrationManager->SelectProfiler( L"Allocation Profiler", &result ); Now, here are the most curious things: First of all, call to OpenProject returns S_OK and result is VARIANT_TRUE, but I can't find the desired project opened in the AQtime window, which just as starting without a project. Secondly, in the AQtime window, I click the "Open Project..." and "New Project From Module..." items on the File menu. Guess what? Nothing happen. However, clicking "New Project" item will work. I can't figure out why. Can you help me?14 years agoPlace AQtime QuestionsAQtime Questions11KViews0likes3Comments