Home > Software engineering >  A function need to return an array of cstrings, how can you achieve?
A function need to return an array of cstrings, how can you achieve?

Time:10-19

Parameters in try using cstrings *, CStringArray, did not succeed, please expert advice, thank you!!!!!!

CodePudding user response:

BOOL XXXX (CStringArray& StrArray);

CodePudding user response:

StrArray [I]=VariantToCString (vtValue);
This individual assignment why not? Error afxcoll. Inl error 233 lines

StrArray. Add (VariantToCString (vtValue)); You can

CodePudding user response:

You want to [] subscript, need to call SetSize () sets the size,

CodePudding user response:

reference VisualEleven reply: 3/f
you want [] subscript, need to call SetSize () sets the size,



I found that if the SetSize (N), if only to M element part of the assignment (M

CodePudding user response:

1. Vector .
2. CStringArray as reference parameters
3. Cstrings * as an array of addresses to use, number of note taking
  • Related