المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Using RFX_Text_Bulk



C++ Programming
12-13-2009, 10:35 PM
void RFX_Text_Bulk(
CFieldExchange* pFX,
LPCTSTR szName,
LPSTR* prgStrVals,
long** prgLengths,// show how to setup and implement
int nMaxLength
);

I need for someone to show me how to setup and implement this field " long** prgLengths"

all examples I've seen shows long* prgLengths in the header and prgLengths = NULL; in the constructor.
I tried that in my program and it came up with an error(compiler) that last two varables not implemented, meaning
long** prgLengths and int nMaxLength .

I have a CString that can at times greatly exceed the max of 255 char. That's why I need to implement the RFX_Text_Bulk function, but I can't find an example to show me how to do so.

Can anyone show me how with a working example. Please note that most times this varable will not be longer that 255 char, then there are times that it will!

A C++ programming ******** novice, but striving to learn