08-12-2006 04:19 AM
08-14-2006 04:21 PM
08-14-2006 05:37 PM
08-17-2006 12:53 PM
08-17-2006 01:38 PM
08-17-2006 08:49 PM
Hi Antonio
One thing: If I use the following codes in my EXE file, it will popup up an ActiveX error(-2147352567), I attached the error screenshot here. The reason why there comes this kind of error, I think is the wrong using the "SeqFileObj", the datatype of SeqFileObj during use of TS_EngineGetSeqFileEx is "TSObj_SeqFile", not CAObjHandle.
errChk( TS_NewEngine (NULL, &engine));
CA_VariantSetCString (&optParameter, ts_GlobalsContext);
tsErrChkMsgPopup(TS_EngineGetSeqFileEx (engine, &errorInfo,OpenedSequenceFilePath, 11,TS_ConflictHandler_Prompt, &SeqFileObj));
tsErrChkMsgPopup(TS_PropertySetFlags (SeqFileObj, NULL, ts_GlobalsContext, 0, flagSet));
Anoter thing: According to your suggestion, I think to use the following codes are also not correct. Please see red part below, the datatype for it should be a string, not Obj.
08-18-2006 02:33 PM
Jacky,
You do not need the sequence context in order to load a sequence file and modify a flag.
The TS_PropertySetFlags method does not take the sequence context as an input parameter.
I created a small application that sets the TS_PropFlags_Hidden flag of a sequence you load by browsing to the corresponding file.
Youa have to remember that if you load a sequence file using TS_EngineGetSeqFileEx you have to release it using TS_EngineReleaseSeqFileEx.
Check the attached example and let me know if you have any questions.
Antonio Lie.