开发者

Relative path on console application

开发者 https://www.devze.com 2023-02-04 08:13 出处:网络
I\'ve an old program that use relative path to get mail templates. The relative path point to local folder on the project folder .

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

0

精彩评论

暂无评论...
验证码 换一张
取 消