As C++ uses the backslash as the escape character, if you want a literal backslash in a string you need to use a pair of then, i.e. \\. Like...
TCHAR CurrntPath[]={"C:\\PGM\\abc.#sy"}; // which ends up as C:\PGM\abc.#sy after compiling
Andy
PS C++11 does also support raw string literals, which treat \ as \, but Visual C++ only supports it from Visual C++ 2013 (currently in preview). If you're using GCC, it's been available from version 4.5.
@andywestken: Oldnamethis value is alzo not having"\\",but that one working fine.So only i did like that for .#sy file..I tryed for getting error information & GetLastError()returns a value 32.What it means?Please reply & help me.