View Single Post
Old Jul 10th, 2005, 1:53 PM   #3
hbweb500
Newbie
 
Join Date: Jul 2005
Posts: 4
Rep Power: 0 hbweb500 is on a distinguished road
Quote:
I don't give a crap if the Pope anointed it, you can't return it from a function defined as returning a void.
I intially had the function classified as LPSTR and had the temp variable initialized as a LPSTR, but it didnt work with wsprintf so I removed it.

An overview: I am trying to make a function that will edit and return a TCHAR. I cant get this to work.

Alternatively: Why wont a LPTSTR work in wsprintf? As in this:

LPTSTR string;
wsprintf(string, "%hS","Research Lab");

That doesnt work for some reason.

Jeff
hbweb500 is offline   Reply With Quote