创建一个win32DLL工程,从DXSDK示例Ball复制代码之后就出这个问题
Deleting intermediate files and output files for project 'FScrCap - Win32 Debug'.
--------------------Configuration: FScrCap - Win32 Debug--------------------
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright
Microsoft Corp 1984-1998. All rights reserved.
cl? /MTd /Ze /W3 /Gm /Gi /GR- /GX /ZI /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /D _USRDLL /D FSCRCAP_EXPORTS /FpDebug/FScrCap.pch /Ycstdafx.h /FoDebug/ /FdDebug/ /FD /GZ /c F:\code\test\DirectShow\FScrCap\StdAfx.cpp
StdAfx.cpp
Compiling...
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright
Microsoft Corp 1984-1998. All rights reserved.
cl? /MTd /Ze /W3 /Gm /Gi /GR- /GX /ZI /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /D _USRDLL /D FSCRCAP_EXPORTS /FpDebug/FScrCap.pch /Yustdafx.h /FoDebug/ /FdDebug/ /FD /GZ /c F:\code\test\DirectShow\FScrCap\fBall.cpp F:\code\test\DirectShow\FScrCap
\FScrCap.cpp
fBall.cpp
FScrCap.cpp
Generating Code...
Linking...
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol ___security_cookie
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol __RTC_CheckEsp
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol __RTC_Shutdown
strmbasd.lib(amvideo.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxlist.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(source.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(combase.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(mtype.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(dllsetup.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(dllentry.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxdebug.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(amfilter.obj) : error LNK2001: unresolved external symbol __RTC_InitBase
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __RTC_UninitUse
Debug/FScrCap.dll : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
FScrCap.dll - 51 error
, 0 warning
To use it from Visual Studio 6 a replacement .LIB is needed that can be found in the Extra's that can be downloaded from Microsoft.
http://msdn.microsoft.com/directx/directxdownloads/
or you can replace the compiler of VC6 with the VC2003 compiler