Dear friends :
I am trying to port an aplication I did in masm to c.
This app was to make a webcam-type imaging system.
I am using the Dev-C++ compiler.
My problem is that :
One function I have to use is :
capCreateCaptureWindow, as defined in video for windows.
As I don't have the include file, but have the lib file (libvfw32.a),
I tryed that :
- in Resource.h (one file I created) :
#define VFWAPI WINAPI
HWND VFWAPI capCreateCaptureWindowW (
int x, int y, int nWidth, int nHeight,
HWND hwndParent, int nID);
#define capCreateCaptureWindow capCreateCaptureWindowW
in main.cpp :
hWndc = capCreateCaptureWindow (
WS_POPUP | WS_VISIBLE | WS_THICKFRAME,
when I compile it I get an error :
[Linker error] undefined reference to `_Z23capCreateCaptureWindowWPKwmiiiiP6HWND__i@32'
Do somebody have an idea? Sorry if it's a stupid question, maybe
but I am starting to learn C.
Thanks a lot :