关于文件读写路径问题
有如下文件
e:\a.exe
e:\a.dll
e:\a.txt
对于a.exe 有:
hDll = LoadLibrary("e:\a.dll")//成功
hDll = LoadLibrary( "a.dll")//成功
file.open("e:\a.dll")//成功
file.open( "a.dll")//失败
第四个为什么会失败呢
[解决办法]
试试 file.open( ".\\a.dll");
不保证一定可行 :)
发布时间: 2012-05-06 16:15:43 作者: rapoo
关于文件读写路径问题
有如下文件
e:\a.exe
e:\a.dll
e:\a.txt
对于a.exe 有:
hDll = LoadLibrary("e:\a.dll")//成功
hDll = LoadLibrary( "a.dll")//成功
file.open("e:\a.dll")//成功
file.open( "a.dll")//失败
第四个为什么会失败呢
[解决办法]
试试 file.open( ".\\a.dll");
不保证一定可行 :)