Help: Not resolved external Symbol
Platform: Visual Studio .NET 2003
I read the MSDN and try using the Video for Windows. I have include
the file <VfW.h>.
Icalled the function capCreateCaptureWindow but failed.
I call the function like this:
// ----------------------------------------------
HWND GetWindow(int x, int y, int nWidth, int nHeight, HWND ParentHWND)
{
HWND WindowHdl;
WindowHdl = capCreateCaptureWindow(
"Capture Window",
WS_EX_CLIENTEDGE | WS_EX_LEFT | WS_VISIBLE | WS_EX_MDICHILD, //
Window Style. Defined in Help Topic: "CreateWindowEx Function"
x,
y,
nWidth,
nHeight,
ParentHWND,
1
);
return WindowHdl;
}
// ----------------------------------------------
Compile message is:
----------------------------------------
Linking...
Creating Library Debug/dll_study.lib and object Debug/dll_study.exp
dll_study.obj : error LNK2019: Not resolved external Symbol
_capCreateCaptureWindowA@32 ,this symbol is XXXed
in function "struct HWND__ * __cdecl GetWindow(int,int,int,int,struct
HWND__ *)" (?
GetWindow@@YAPAUHWND__@@HHHHPAU1@@Z)
Debug/dll_study.dll : fatal error LNK1120: 1 unresolved external
Symbol
----------------------------------------
BTW, I don't use the VS of English Version, so the message is
translated into English but not origin.
I have totally no idea of where to start with, I don't even know what
"HWND__ * __cdecl GetWindow" is...
Where does the error come from and how can I solve it?
Thank you very much!