请问PB10.5如何取应用程序的当前路径?
Function Ulong GetCurrentDirectory(Ulong nSize,Ref string lpbuffer) library "kernel32.dll" Alias For "GetCurrentDirectoryA"
string s_AppPath
string ls
constant long ll_len=256
ls=space(ll_len)
GetCurrentDirectory(ll_len,ls)
ls_AppPath=trim(ls)+"\sets.ini"
结果:ls_AppPath="㩄杜z\sets.ini"
是一串乱码
应用程序的当前路径在10.5中该怎么求?