Windows CE: LoadLibrary Fails with Error Code 193
来源:互联网 发布:淘宝360无线手柄 编辑:程序博客网 时间:2024/04/29 15:03
把DriverAPI.dll放NK里然后在应用层用以下方式调用
HMODULE hDll = (HMODULE)::LoadLibrary(TEXT("\\Windows\\DriverAPI.dll"));
if (NULL == hDll)
{
printf("LoadLibrary dll failed. errCod = %d\r\n", GetLastError());
}
结果:提示LoadLibrary失败,代码193 %1 不是有效的 Win32 应用程序。
原因:
在platform.bib中做以下改动
; DriverAPI for APP ---------------------------------SHK -> SHQ--------------------------
DriverAPI.dll $(_FLATRELEASEDIR)\DriverAPI.dll NK SHQ
; -----------------------------------------------------------------------------
==============================================
终于解决问题了,虽然是一个小问题,却折磨了我两天。
原理: Q指定此DLL是在用户态,而K指定的是在内核态
- Windows CE: LoadLibrary Fails with Error Code 193
- Windows CE: LoadLibrary Fails with Error Code 193
- MySQL:Foreign key fails with error Error Code: 1452.
- SQL Server cluster failover fails with Error Code: 0x80071398
- loadlibrary failed with error 126
- CreateCompatibleBitmap Fails with Err code 8
- XADM: Information Store Fails To Start With 1011 Error
- Migration fails with Error: unable to resolve address
- Sqoop fails with "Error parsing arguments for import"
- React Native starter project bundling fails with Unexpected Token error
- Photoshop--loadlibrary failed with error 126:找不到指定模块
- loadlibrary failed with error 126:找不到指定模块 解决方法
- Android loadlibrary failed with error 126:找不到指定模块
- loadlibrary failed with error 126:找不到指定模块 解决方法
- loadlibrary failed with error 126:找不到指定模块
- windows loadlibrary()
- windows error code list
- Windows Installer error code
- encode decode学习心得
- android屏幕旋转
- Android系统在超级终端下必会的命令大全(adb shell命令大全)
- Java Socket实战之五 使用加密协议传输对象
- Android Scroller类的详细分析
- Windows CE: LoadLibrary Fails with Error Code 193
- 从hello world 说程序运行机制
- win7 下硬盘安装fedora16
- ruby环境搭建
- 第三周 任务二
- 关于在case语句中变量的定义
- Nginx部署rails项目要点,大文件上传设置(413)
- 第二周实验报告(1)
- jsp部署到服务器