Thread: Directory string conversion.

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    132

    Directory string conversion.

    In my program, I have a directory string:
    C:\\test\\media\\..\\img\\1.bmp

    Now, my problem is that I need to have the absolute directory from the above, pointing to C:\\test\\img\\1.bmp
    What's the fastest way to convert it?
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Some stdlib.h implementations have _fullpath().

    Or you can use the Win32 API function GetFullPathName()

    gg

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Ahh it was SO easy??
    Thanks man.
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM