Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCHAR* out paramater

Status
Not open for further replies.

Pyramus

Programmer
Dec 19, 2001
237
GB
I want to return a TCHAR* via the argument of a function, e.g. normally you would pass the argument by reference

void myfunction(type& myoutvariable)

for a TCHAR*, would I do...

void myfunction(TCHAR**)

i.e. a pointer to a TCHAR*?
 
If you want to change the pointer itself (i.e. initialize it to be pointing to a block of memory you'll be creating in the method), you'll need to do as you said (TCHAR**).

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top