|
-
April 8th, 1999, 07:34 PM
#4
Re: Simple as hell
It would be easiest to pass a CString object to:
void myfunc (CString sMyString) // sMyString may grow in size with no problem
Next place the following code fragment in the calling function:
CString sMyString;
myfunc(sMyString); // May cast sMyString into LPTSTR if you want. Read document
CString object is often more convenient than char *. It will be destroyed automatically as it goes out of scope.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|