User Profile
Collapse
-
Although Win32 is case insensitive it does respect the case of file names. The FindFirstFile() API may be used to determine the correct case of the desired file name. Note that this also works for retrieving the correct case for directory names, but each piece of a path name would have to be checked separately. -
Sorry for the late response, I'm rather new to the site.
Although Win32 is case insensitive it does respect the case of file names. The FindFirstFile() API may be used to determine the correct case of the desired file name. Note that this also works for retrieving the correct case for directory names, but each piece of a path name would have to be checked separately.Leave a comment:
-
The 'preferred' method isbut as noted previously the const char* (or LPCTSTR) CAtlString string operator will work as well.Code:CAtlString::GetString()
Your code was casting the address of the CAtlString to a char* which does not work because the char* points to the address of the string address (the m_pszData member); it would be possible to write -
but I strongly suggest using the members...Code:char* pszString = *(char**)&str2 ;
Leave a comment:
No activity results to display
Show More
Leave a comment: