I am porting an app to vs.net 2003. The person that originally wrote this app returns afxEmptyString if he wanted to return an empty CString object. Evidently, afxEmptyString is deprecated. What is the commonly accepted way of doing this?
thanx
Printable View
I am porting an app to vs.net 2003. The person that originally wrote this app returns afxEmptyString if he wanted to return an empty CString object. Evidently, afxEmptyString is deprecated. What is the commonly accepted way of doing this?
thanx
Hi,
I don't know what the commonly accepted way is. But i'm using the following:
return _T("");
You can also:
return CString();
which calls the constuctor for a CString which by default is empty.
:cool:
.