我的程序出现如下错误
msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
我的程序是Win32 Application的工程,请问应该如何解决?
msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
我的程序是Win32 Application的工程,请问应该如何解决?
解决方案 »
- 子窗口置顶(具有WS_EX_TOPMOST属性),当点击其他进程时依然置顶!
- ADO无效指针问题,哪位来帮帮忙
- 两个从数据库中取出二进制图片信息,转换成bitmap后,怎样比较怎两张图片
- stl中map<>可以有三个参数吗?
- ATL组件 在线程中调用IDispatch::Invoke没有反应
- 【请教】框架类如何调用视类的函数??
- VC++6.0 错误 warning LNK4006: , error LNK2001: unresolved external symbol
- pipe中缓存的问题
- 请教文件读写
- [新手请教]job queue工作队列是什么,它与线程池是什么关系?
- 问个小问题
- WSAAsyncSelect的疑问?
MS-Windows Troubleshooting--------------------------------------------------------------------------------error LNK2001: unresolved external symbol _WinMain@16--------------------------------------------------------------------------------Symptom:
Microsoft Visual C++ generates the link error:msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external symbol [email protected](crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16Cause:
The linker is looking for the entry point for a console application, but the application is being compiled and linked as a windows application (i.e. not a console application).This error has been observed after changing the project settings from using MBCS to UNICODE characters.Remedy:
Under the project settings, under the ‘Link’ tab, category ‘output’, set the ‘Entry-point symbol’ to ‘wWinMainCRTStartup’.这里改一下就可以了,
ID: Q125750
--------------------------------------------------------------------------------
The information in this article applies to:The C Run-Time (CRT), used with:
Microsoft Visual C++, 32-bit Editions, versions 2.0, 2.1, 4.0, 5.0, 6.0--------------------------------------------------------------------------------
SYMPTOMS
The linker generates the following error, when you build an MFC application with UNICODE support using the Microsoft products listed at the beginning of this article: msvcrt.lib(crtexew.obj) : error LNK2001: unresolved external
symbol "_WinMain@16" CAUSE
MFC UNICODE applications use wWinMainCRTStartup as the entry point. RESOLUTION
In the Output category of the Link tab in the Project Settings dialog box, set the Entry Point Symbol to wWinMainCRTStartup. STATUS
This behavior is by design. REFERENCES
The above information is documented in Books Online under this structure:
- C/C++
- Programming Techniques
- Chapter 12 Developing for International Markets
- Support for Unicode
- Unicode Programming: Summary
This reference also lists the additional steps that you need to consider to take advantage of the MFC and C run-time support for Unicode. Additional query words: 3.0 Unicode wWinMainCRTStartup Keywords : kberrmsg kbMFC kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 kbGrpMFCATL
Version : winnt:2.0,2.1,4.0,5.0,6.0
Platform : winnt
Issue type : kbprb
Technology : kbvc