我把一个程序通过写注册表
HKEY_LOCAL_MACHINE 下 SoftWare\Microsoft\Windows\CurrentVerrsion\run
如 mypro   D:\project\project1
我在程序里用到了GetCurrentDir 函数来获取配置文件的路径在程序自启动的时候就无法正确读取配置文件
 
我加了showmessage在异常处理中,程序自启动时showmessage(getcurrentdir) 显示的是
C:\Documents and Settings\Administrator怎样才能让程序在自启动的时候getcurrentdir 也是D:\project呢?