main.obj : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16
详细看:https://social.msdn.microsoft.com/Forums/vstudio/en-US/534b926b-ab1c-460d-b5f7-7ff0d85f8378/mainobj-error-lnk2019-unresolved-external-symbol-impmessageboxa16-referenced-in-function?forum=vcgeneral
重点在 <windows.h>里面添加代码
*Clearing
Throat*
Just enter that under your windows.h include command.
Hope I am not to late for this awnser.
Code Block
#pragma comment(lib,"user32.lib")
Just enter that under your windows.h include command.
Hope I am not to late for this awnser.
![Smile](http://forums.microsoft.com/MSDN/emoticons/emotion-1.gif)
- Proposed as answer by mjkort Wednesday, July 02, 2008 10:10 AM