what I am doing wrong here?
I am trying to get the color of the word.
PDWordFinderAcquireVisibleWordList(wordFinder, i, NULL, &wordInfo, &pXYSortTable, NULL, &numWords);
for (ASInt32 k = 0; k<numWords;k++) {
myWord = PDWordFinderGetNthWord(wordFinder, k);
wordStyle = PDWordGetNthCharStyle(wordFinder, myWord, 0);
if (wordStyle!=NULL){
PDStyleGetColor(wordStyle, theColor);// I get an error here
}
}
the guide says that I should use a pointer to the color structure but I cannot build the api if I use it this way.
PDStyleGetColor(wordStyle, &theColor)
thanks in advance.