The procedure entry point XXX could not be located in the dynamic link library XXX.dll
2011-11-24 16:19
966 查看
原因及分析:
此时由于.library和.dll文件版本不匹配造成的。比如.lib里有20个函数,.dll只有19个函数,当windows加载动态链接库的时候,它检查是否匹配,否则报错。
在项目需要运行多个不同版本的dll文件时候,容易出现此问题。此时隐式调用Dll。
解决办法:
采用显示调用,手工加载的办法。
1)声明函数指针原型。
2)LoadLibrary()
3)GetProcAddress()
4)比较重要,在调用此函数指针的时候,判断是否NULL。因为在dll文件里没有实现的函数指针是NULL。
此时由于.library和.dll文件版本不匹配造成的。比如.lib里有20个函数,.dll只有19个函数,当windows加载动态链接库的时候,它检查是否匹配,否则报错。
在项目需要运行多个不同版本的dll文件时候,容易出现此问题。此时隐式调用Dll。
解决办法:
采用显示调用,手工加载的办法。
1)声明函数指针原型。
2)LoadLibrary()
3)GetProcAddress()
4)比较重要,在调用此函数指针的时候,判断是否NULL。因为在dll文件里没有实现的函数指针是NULL。
相关文章推荐
- the procedure entry point **(function symble) could not be located in the dynamic link library **.dl
- The procedure entry point @Dbxdynalink@initialization$qqrv could not be
- 【问题解决】无法定位程序输入点~于动态链接库上(The procedure entry point ~ could not be located)
- "Procedure EntryPoint XXX Not Found In WS2_32.dll"的解决方案
- the command could not be located because '/bin' is not included in the path environment variable
- You receive a "Setup Library wbemupgd.dll could not be loaded" error message when you use Add or Remove Programs in Windows Server 2003
- Application "XXX" could not be found in the registry的解决办法
- rcp(插件开发)Application "XXX" could not be found in the registry的解决办法
- Application "XXX" could not be found in the registry的解决办法
- XXX could not be redeployed because it could not be completely removed in the undeployment phase
- Application "XXX" could not be found in the registry. The applications available are: .
- XXX could not be redeployed because it could not be completely removed in the un
- An object in the SharePoint administrative framework could not be deleted because other objects depend on it.
- the app xxx.app could not be added to your iTunes library because it is not a valid app
- 关于HIS客户端程序登陆后提示“the oracle library OCI.DLL could not be loaded”
- Silent install Oracle 10.2 in W2k8 - GetProcessImageFileNameW not in dynamic link library PSAPI.DLL
- XXX could not be redeployed because it could not be completely removed in the undeployment phase .
- error127:The specified procedure could not be found.无法找到入口 无法定位程序输入点xxx 于动态链接库ulib.dll上
- XXX could not be redeployed because it could not be completely removed in the undeployment phase
- XXX could not be redeployed because it could not be completely removed in the undeployment phase. th