开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜