>>>>> "Richard" == Richard E Hawkins Esq <[EMAIL PROTECTED]> writes:
Richard> ahh, here's why I stopped doing that. I added
Richard> #include "lyxparagraph.h"
Richard> to lyxfunct.C, and my prototype does seem to be there
Richard> smith:/usr/src/lyx0_12/src# grep GetWord lyxparagraph.h
Richard> LString GetWord(int * pos);
Richard> but it doesn't seem to get recognized:
Richard> LString curstring;
Richard> curstring = GetWord(&lastpos);
The call should be something like:
curstring = par.GetWord(&lastpos)
if you correctly defined GetWord as a methor of the LyXParagraph
class. Moreover, I guess you use &lastpos because your definition is
LString GetWord(int* lastpos)
You should replace it with:
LString GetWord(int& lastpos)
Then you can use lastpos like a normal int, but its value will be
changed when returning from the GetWord() method.
JMarc