Hello all,
I have the following code that works in Debug mode in my program, but not in Release mode:
In Release mode the CT2CA() call returns garbage.Code:CString dir; GetCurrentDirectory(1000, dir.GetBufferSetLength(1000)); string path = string(CT2CA(dir)) + "\\tempdir\\test1.jpg";
Any idea why or how best to fix this to work with std::string??
Thanks!




Reply With Quote