Hi all,
I'm looking for a similar function to ::MoveFile([src],[dest]) except I'm trying to move the file from one computer to another over a network link.
I'm aware that on its own ::MoveFile doesn't support this. Does anyone know an alternative? Specifically, I'm interested in one-and-done...
I got it to work by doing this...
CString s = "This is a test";
CT2CA pszConvertedAnsiString (s);
std::string strStd (pszConvertedAnsiString);
printf("%s", strStd.c_str());
not very elegant but it works...
both GetBuffer() and GetString() return a const wchar_t * which still doesn't work with printf, unfortunately.
You're right, CString is really starting to get on my nerves but I have to use it temporarily for this project.
Hi, a simple question.
I'm try to use the printf function with CStrings in a Win32 Console application. I've already included MFC support. Since the printf function accepts const char * variables, I'm getting an error when I try something like.
CString s = "this is a test";
printf(s);
Is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.