zoukankan      html  css  js  c++  java
  • error LNK2019: 解析的外部符号 __imp__DispatchMessageW@4,在函数的符号 _WinMain@16 据引述

    错误:

    1>WinMain.obj : error LNK2019: 解析的外部符号 __imp__DispatchMessageW@4,在函数的符号 _WinMain@16 据引述
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__TranslateMessage@4,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__GetMessageW@16,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__UpdateWindow@4,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__ShowWindow@8,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__CreateWindowExW@48。该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__RegisterClassW@4,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__LoadIconW@8。该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__LoadCursorW@8,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__GetStockObject@4,该符号在函数 _WinMain@16 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__DefWindowProcW@16。该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__PostQuitMessage@4,该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__DestroyWindow@4。该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__EndPaint@8,该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__BeginPaint@8,该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__ReleaseDC@8。该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__TextOutW@20。该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?

    WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__GetDC@4。该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>WinMain.obj : error LNK2019: 无法解析的外部符号 __imp__MessageBoxW@16,该符号在函数 "long __stdcall WinSunProc(struct HWND__ *,unsigned int,unsigned int,long)" (?

    WinSunProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
    1>.DebugWinMain.exe : fatal error LNK1120: 19 个无法解析的外部命令




    LINK时找不到所须要的LIB文件,在程序前面加上语句
    #pragma comment  (lib,"User32.lib")
    #pragma comment  (lib,"Gdi32.lib")


    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    转:【More Effective C#】Lambda表达式优化
    转:Highcharts图表控件的使用
    C# subString的理解
    转:TimeSpan的用法
    Android学习笔记一:Android基本组件和Activity生命周期
    IIS 反向代理设置
    WebApi 身份认证解决方案:Basic基础认证
    Calling async method synchronously
    C# 公共类
    aspnet-api-versioning
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4734875.html
Copyright © 2011-2022 走看看