Cannot compile GetImage code sample

Haven't used Visual Studio for a number of years and getting back into development for a webcam device.

Installed Visual C++ 2005 express and Platform SDK for Windows Server 2003 R2.

Downloaded "GetImage" code sample and tried to compile. I had to add include directories so that ATLBASE.H could be found, and compile finishes but linker complains that ATLTHUNK.LIB cannot be found.

Saw a thread for a different code sample that the pragma referencing ATLTHUNK.LIB can be commented out but that just resulted in more linker errors.

So, how can I compile the code sample? Or is there a more appropriate code sample for VisualC Express to deal with acquiring an image from a webcam and displaying it ?

[747 byte] By [LDCVS] at [2007-12-21]
# 1

I don't know the code sample in question, does it use MFC ? If so, Express can't compile it.

You'll probably find it easier to download C# Express and look for a C# sample, that way, examples you find online will compile with your compiler ( or at least be more likely to )

cgraus at 2007-9-10 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...