Relative path on console application
I've an old program that use relative path to get mail templates. The relative path point to local folder on the project folder . My problem is that the program transalte the relative path to c:\windows\system32... . The os is server 2008 . There is any configuration wor开发者_如何学编程k around that i need to do ?
Thanks in advance ,
Ishay .
You should use GetFullPathName function for converting relative path to full path, but pay attention YOU SHOULD NOT USE THIS FUNCTION IF YOUR PROGRAMM IS MULTITHREADED
精彩评论