Wince在进程控制程序里的解决办法 error LNK2019错误解决办法
来源:互联网 发布:杨卫 知乎 编辑:程序博客网 时间:2024/05/16 09:17
今天写了个关于WINCE底层进程控制的小程序,很气愤的是一个叫优X的公司,很XX,所以我自己做了个,而且开源
叫CEProcessSitter。进程保姆。大家有需要的自己下。这里讲下遇到的一个小问题。
然后主要的问题是遇到了ERROR LINK 2019
I include in header "#include <tlhelp32.h>" but giving this error
Error 9 error LNK2019: unresolved external symbol Process32Nextreferenced in function "unsigned long __cdecl FindProcess(wchar_t *)"(?FindProcess@@YAKPA_W@Z) FileDB.obj
Error 10 error LNK2019: unresolved external symbol Process32Firstreferenced in function "unsigned long __cdecl FindProcess(wchar_t *)"(?FindProcess@@YAKPA_W@Z) FileDB.obj
Error 11 error LNK2019: unresolved external symbolCreateToolhelp32Snapshot referenced in function "unsigned long __cdeclFindProcess(wchar_t *)" (?FindProcess@@YAKPA_W@Z) FileDB.obj
Error12fatal error LNK1120: 3 unresolved externalsWindows Mobile 5.0 Smartphone SDK
WM和WINCE5.0都好像有这个问题。
解决办法是
This function retrieves information about the next process recorded in a system snapshot.
BOOL WINAPI Process32Next(
HANDLE hSnapshot,
LPPROCESSENTRY32 lppe
);
...
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Tlhelp32.h.
Link Library: Toolhelp.lib.
So this means you need to add the toolhelp.lib to your project.
You can use the compiler directive #pragma comment (lib,"toolhelp.lib") right after you include #include "tlhelp32.h"
Or you can add it to your project settings.
找到toolhelp.lib然后拷贝到你程序的目录下应用就好了。
就这么简单。程序我传到google的CODE里面了。第一版。
下午出差。。。汗。。本来准备做一个把调用DLL的也显示的。等待第二版做了。。。
http://code.google.com/p/ceprocesssitter/downloads/detail?name=ProcessSitter%20For%20WinCE.rar&can=1&q=&sort=-filename#makechanges
Google的在这里下载了。
CSDN上我也会传上
http://download.csdn.net/source/574828
要的大家自己下拉。
叫CEProcessSitter。进程保姆。大家有需要的自己下。这里讲下遇到的一个小问题。
然后主要的问题是遇到了ERROR LINK 2019
I include in header "#include <tlhelp32.h>" but giving this error
Error 9 error LNK2019: unresolved external symbol Process32Nextreferenced in function "unsigned long __cdecl FindProcess(wchar_t *)"(?FindProcess@@YAKPA_W@Z) FileDB.obj
Error 10 error LNK2019: unresolved external symbol Process32Firstreferenced in function "unsigned long __cdecl FindProcess(wchar_t *)"(?FindProcess@@YAKPA_W@Z) FileDB.obj
Error 11 error LNK2019: unresolved external symbolCreateToolhelp32Snapshot referenced in function "unsigned long __cdeclFindProcess(wchar_t *)" (?FindProcess@@YAKPA_W@Z) FileDB.obj
Error12fatal error LNK1120: 3 unresolved externalsWindows Mobile 5.0 Smartphone SDK
WM和WINCE5.0都好像有这个问题。
解决办法是
This function retrieves information about the next process recorded in a system snapshot.
BOOL WINAPI Process32Next(
HANDLE hSnapshot,
LPPROCESSENTRY32 lppe
);
...
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Tlhelp32.h.
Link Library: Toolhelp.lib.
So this means you need to add the toolhelp.lib to your project.
You can use the compiler directive #pragma comment (lib,"toolhelp.lib") right after you include #include "tlhelp32.h"
Or you can add it to your project settings.
找到toolhelp.lib然后拷贝到你程序的目录下应用就好了。
就这么简单。程序我传到google的CODE里面了。第一版。
下午出差。。。汗。。本来准备做一个把调用DLL的也显示的。等待第二版做了。。。
http://code.google.com/p/ceprocesssitter/downloads/detail?name=ProcessSitter%20For%20WinCE.rar&can=1&q=&sort=-filename#makechanges
Google的在这里下载了。
CSDN上我也会传上
http://download.csdn.net/source/574828
要的大家自己下拉。
- Wince在进程控制程序里的解决办法 error LNK2019错误解决办法
- Wince在进程控制程序里的解决办法 error LNK2019错误解决办法
- "error LNK2019: 无法解析的外部符号"错误的解决办法
- ACE应用程序链接错误 error LNK2019 的解决办法
- OpenCV2.2+VC2005 error LNK2019错误解决办法
- error LNK2019 CEikGlobalTextEditor 解决办法
- error LNK2019解决办法
- error LNK2019解决办法
- Qt技巧:Error LNK2019解决办法
- 在cocos2dx2.2.3中遇到的error LNK2019: 无法解析的外部符号 _libiconv_closexxxxxxx的解决办法
- 在cocos2dx2.2.3中遇到的error LNK2019: 无法解析的外部符号 _libiconv_closexxxxxxx的解决办法
- Qt5 error LNK2019 无法解析的外部符号 解决办法
- error LNK2019: 无法解析的外部符号 解决办法
- Qt5 error LNK2019 无法解析的外部符号 解决办法
- Qt5 error LNK2019 无法解析的外部符号 解决办法
- 用MFC编程编译时出现LNK2019的错误,解决办法
- 编写驱动 错误error LNK2019: unresolved external symbol _DriverEntry@8 referenced in function _GsDriverEntry@8的解决办法
- wince 系统error C2471: cannot update program database 错误解决办法。
- IDE中debug 输出
- ASP.NET Post页面及验证视图状态MAC失败问题的解决办法
- safari 3.1 GDI模式渲染解决字体发虚
- 为没有源码的程序集添加强名称
- href定位
- Wince在进程控制程序里的解决办法 error LNK2019错误解决办法
- BDC学习笔记
- Ext中如何使用正则表达式?有分奖哦~~
- 2年的网站经验
- myeclipse快捷键
- 大陆解除互联网 Internet封锁
- C#正则表达式整理备忘
- oracle导入导出
- 增删改(Action层)模板