佚名通过本文主要向大家介绍了dll/ocx regsvr32失败,无法注册dll/ocx,dll/ocx:regsvr32,不能注册dll/ocx,有效的dll或ocx文件等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 在OCX里调用DLL时,为什么一定要把DLL放在桌面才能Loadlibray成功
描述:
解决方案1:
描述:
如题
解决方案1:
SetCurrentDirectory
The SetCurrentDirectory function changes the current directory for the current process.
BOOL SetCurrentDirectory(
LPCTSTR lpPathName
);
一般不需要设置当前路径,你用绝对路径就是。
那就说明你的当前路径是桌面所在目录,你应该用绝对路径或者设定当前路径为DLL所在目录。