Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. error LNK2019: unresolved external symbol

error LNK2019: unresolved external symbol

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionannouncementc++learning
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zhiyuan16
    wrote on last edited by
    #1

    dear all what is problem the following? thanks a lot.

    .\AVI Player.cpp(53) : warning C4996: 'CWinApp::Enable3dControls': CWinApp::Enable3dControls is no longer needed. You should remove this call.
    D:\All Install Application\VC\atlmfc\include\afxwin.h(4818) : see declaration of 'CWinApp::Enable3dControls'
    Generating Code...
    Compiling resources...
    Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
    Copyright (C) Microsoft Corporation. All rights reserved.
    Linking...
    AVI PlayerDlg.obj : error LNK2019: unresolved external symbol _MCIWndCreateA referenced in function "protected: void __thiscall CAVIPlayerDlg::OnPlay(void)" (?OnPlay@CAVIPlayerDlg@@IAEXXZ)
    .\Release/AVI Player.exe : fatal error LNK1120: 1 unresolved externals
    Build log was saved at "file://c:\Documents and Settings\ZhiYuan Li\Desktop\MP3Player\Release\BuildLog.htm"
    AVI Player - 2 error(s), 1 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped

    _ 1 Reply Last reply
    0
    • Z zhiyuan16

      dear all what is problem the following? thanks a lot.

      .\AVI Player.cpp(53) : warning C4996: 'CWinApp::Enable3dControls': CWinApp::Enable3dControls is no longer needed. You should remove this call.
      D:\All Install Application\VC\atlmfc\include\afxwin.h(4818) : see declaration of 'CWinApp::Enable3dControls'
      Generating Code...
      Compiling resources...
      Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
      Copyright (C) Microsoft Corporation. All rights reserved.
      Linking...
      AVI PlayerDlg.obj : error LNK2019: unresolved external symbol _MCIWndCreateA referenced in function "protected: void __thiscall CAVIPlayerDlg::OnPlay(void)" (?OnPlay@CAVIPlayerDlg@@IAEXXZ)
      .\Release/AVI Player.exe : fatal error LNK1120: 1 unresolved externals
      Build log was saved at "file://c:\Documents and Settings\ZhiYuan Li\Desktop\MP3Player\Release\BuildLog.htm"
      AVI Player - 2 error(s), 1 warning(s)
      ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Try giving this at the beginning of the file #pragma comment( lib, "Vfw32" )

      « Superman »

      Z 1 Reply Last reply
      0
      • _ _Superman_

        Try giving this at the beginning of the file #pragma comment( lib, "Vfw32" )

        « Superman »

        Z Offline
        Z Offline
        zhiyuan16
        wrote on last edited by
        #3

        which file beginning? i put vfw.h already in my file. thanks

        Z _ 2 Replies Last reply
        0
        • Z zhiyuan16

          which file beginning? i put vfw.h already in my file. thanks

          Z Offline
          Z Offline
          zhiyuan16
          wrote on last edited by
          #4

          before posted first one, i already put it, now still same problem,thanks

          1 Reply Last reply
          0
          • Z zhiyuan16

            which file beginning? i put vfw.h already in my file. thanks

            _ Offline
            _ Offline
            _Superman_
            wrote on last edited by
            #5

            That command is not for the .h file. It is for the .lib file. That is the unresolved error that you get.

            « Superman »

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups