注意在切换编写API与MFC程序时是与将Microsoft Foundation Classes修改回来否则产生错误:

--------------------Configuration: HelloWindows - Win32 Debug--------------------
Linking...
test.obj : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
test.obj : error LNK2001: unresolved external symbol __imp__TranslateMessage@4
test.obj : error LNK2001: unresolved external symbol __imp__GetMessageA@16
test.obj : error LNK2001: unresolved external symbol __imp__UpdateWindow@4
test.obj : error LNK2001: unresolved external symbol __imp__ShowWindow@8
test.obj : error LNK2001: unresolved external symbol __imp__CreateWindowExA@48
test.obj : error LNK2001: unresolved external symbol __imp__RegisterClassA@4
test.obj : error LNK2001: unresolved external symbol __imp__GetStockObject@4
test.obj : error LNK2001: unresolved external symbol __imp__DefWindowProcA@16
test.obj : error LNK2001: unresolved external symbol __imp__EndPaint@8
test.obj : error LNK2001: unresolved external symbol __imp__TextOutA@20
test.obj : error LNK2001: unresolved external symbol __imp__BeginPaint@8
test.obj : error LNK2001: unresolved external symbol __imp__GetDC@4
test.obj : error LNK2001: unresolved external symbol __imp__PostQuitMessage@4
test.obj : error LNK2001: unresolved external symbol __imp__DestroyWindow@4
test.obj : error LNK2001: unresolved external symbol __imp__MessageBoxA@16
Debug/HelloWindows.exe : fatal error LNK1120: 16 unresolved externals
Error executing link.exe.

HelloWindows.exe - 17 error(s), 0 warning(s)
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
======================================================================== MICROSOFT FOUNDATION CLASS LIBRARY : Test ======================================================================== AppWizard has created this Test application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your Test application. Test.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. Test.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CTestApp application class. Test.cpp This is the main application source file that contains the application class CTestApp. Test.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. Test.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions. res\Test.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file Test.rc. res\Test.rc2 This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file. ///////////////////////////////////////////////////////////////////////////// AppWizard creates one dialog cla
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值