静态调用dll,按如下顺序搜索: 1、The directory containing the EXE file. 2、The process's current directory. 3、The Windows system directory. 4、The Windows directory. 5、The directories listed in the Path environment variable.楼主描述的情况,应该是列表中第2种:The process's current directory. 即搜索到当前进程目录下的dll。
没改变当前目录
这个我知道,我想搞清楚,现在错误调用的原因,静态加载的方式不是只调用所在目录下的DLL么
1、程序载入的目录.
2、当前目录.
3、system目录. 使用GetSystemDirectory 函数获取这个目录路径.
4、16-bit system目录. 没有函数获取这个目录,但属于DLL搜索范围.
5、Windows目录. 使用GetWindowsDirectory函数可以获取该目录路径.
6、PATH 环境变量设置的目录列表.
1、The directory containing the EXE file.
2、The process's current directory.
3、The Windows system directory.
4、The Windows directory.
5、The directories listed in the Path environment variable.楼主描述的情况,应该是列表中第2种:The process's current directory.
即搜索到当前进程目录下的dll。
楼主直接就说出结论了,加以肯定就是了嘛
这里可以配置有关目录路径