I am writing a C++ class that programmatically adds steps to a sequence file. The steps are ActiveX Automation types, making calls to properties and methods on a COM server.
I have been successful in creating a step, filling in the TS.SDATA.CALL parameters and adding it to the main sequence. When I open the sequence in the TS sequence editor and bring up the specify module dialog, all of the dialog fields fill out properly.
However, I've recently been wanting to bring up the specify module dialog programmatically. I have a smart pointer to the step object ( TS::StepPtr ) and tried calling spStep->SpecifyModule(0). This hangs the app, which leaves me scratching my head wondering what TS is objecting to. Rememb
er I can then go to the TS sequence editor and successful bring up the specify module dialog on the very same step.
I pretty sure the window handle I've passed to the engine is valid. I can successfully display the engine options dialog programmatically.
Any idea? Do I have to call some setup function before calling Step::SpecifyModule( long specModOptions )?
Thank you much.
Aaron