I have a method that is returning a CString and placing it into a variable, however this variable is a parameter in the method. Is there a better way to assign the return of the method into the variable?
Example:
CString foo = "foo";
foo = MakeBar(foo);
Pass foo by reference into the function. In that way it’s understood that it will be an input/output parameter.