Thread: GetFullPathName

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    130

    GetFullPathName

    Hi,

    GelFullPathName() function returns the path with backslash. Is there any option to return the path with the forward slash?

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Maybe there is, but nonetheless, did you even consider approaching it manually?

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Moony, this is a very simple operation, window's fancy apis can't do everything for you. But here is somthing I whipped up anyway...
    Code:
    void ReverseSlashes(char *psz, DWORD size)
    {
       int loop;
       for(loop = 0; loop < size; loop++)
          if(psz[loop] == '\\')
             psz[loop] = '/';
    }

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    130
    I can do it manually, and thanks Queatrix.
    I was just asking in case it can be provided by the function.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GetFullPathName()?
    By SyntaxBubble in forum Windows Programming
    Replies: 4
    Last Post: 01-26-2002, 09:02 PM