error LNK2019: unresolved external symbol
-
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 -
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 skippedTry giving this at the beginning of the file
#pragma comment( lib, "Vfw32" )
« Superman »
-
Try giving this at the beginning of the file
#pragma comment( lib, "Vfw32" )
« Superman »
-
That command is not for the .h file. It is for the .lib file. That is the unresolved error that you get.
« Superman »