User Profile

Collapse

Profile Sidebar

Collapse
mcubed
mcubed
Last Activity: Jul 11 '08, 05:41 PM
Joined: Jun 12 '08
Location: Houston, TX
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mcubed
    replied to Getting File Properties info
    in C
    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.
    See more | Go to post

    Leave a comment:


  • mcubed
    replied to Getting File Properties info
    in C
    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.
    See more | Go to post

    Leave a comment:


  • mcubed
    replied to How can I convert CAtlString back to a char * ?
    in C
    The 'preferred' method is
    Code:
    CAtlString::GetString()
    but as noted previously the const char* (or LPCTSTR) CAtlString string operator will work as well.
    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 -
    Code:
        char* pszString = *(char**)&str2 ;
    but I strongly suggest using the members...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...