How to use CAlert to print an object.
I have a code block as below:
InterfacePtr<ITextFocus> iSelectionTextFocus(iTextFocus, UseDefaultIID());
if (iSelectionTextFocus != nil){
focusStart = iSelectionTextFocus->GetStart(nil);
}
InterfacePtr<IGTTxtEdtSnapshotInterface> iGTTxtEdtSnapshotInterface(iDocument,UseDefaultIID());
if (iGTTxtEdtSnapshotInterface == nil || focusStart == kInvalidTextIndex){
break;
}
iGTTxtEdtSnapshotInterface->SetStoryAndIndex(storyUIDRef,focusStart);
TRACEFLOW(kGTTxtEdtPluginName,"Text story observer range == %d\n", focusStart);
From the code, I want o print out "focusStart" using CAlert::InformationAlert. But I got error when trying to write a line like this:
CAlert::InformationAlert(focusStart);
How can I solve this problem?
Note: The code block is get from file "GTTxtEdtStoryObserver.cpp" in InDesgin SDK under project "gotolasttextedit".
Regards,
Dung Tri