ASErr result = kNoErr;
AIArtSuite *aiArt;
sBasic->AcquireSuite( kAIArtSuite, kAIArtSuiteVersion13, (const void**)&aiArt );
AITextFrameSuite *aitext = NULL;
sBasic->AcquireSuite( kAITextFrameSuite, kAITextFrameSuiteVersion, (const void**)&aitext );
// Get the group art that contains all the art in the current layer.
AIArtHandle artGroup = NULL;
sAIArt->GetFirstArtOfLayer(NULL, &artGroup);
// Add the new point text item to the layer.
AITextOrientation orient = kHorizontalTextOrientation;
AIRealPoint anchor = {10,10};
AIArtHandle textFrame = NULL;
result = aitext->NewPointText(kPlaceAboveAll, artGroup, orient, anchor, &textFrame);
// Set the contents of the text range.
TextRangeRef range1 = NULL;
result = aitext->GetATETextRange(textFrame, &range1);
ATE::ITextRange needtoBe(range1);
---------------->>>>>> Seem to stuck here <<<<<<-----------------------
needtoBe.InsertAfter("EWEWEW");
Anyone could help me see what is wrong with my coding??? I am able to create the textFrame but could not able to write the text inside...