With the entire program commented out except these few lines, this works like a charm with LabVIEW. Unfortunately there is a snag when I actually implement it. Here is the VC++ error:
------ Build started: Project: PCIcameraSDK, Configuration: Debug Win32 ------
Compiling...
camera.cpp
c:\Documents and Settings\General\My Documents\Visual Studio Projects\PCIcameraSDK\camera.cpp(228) : error C2664: 'CImageData::SetBmpInfo' : cannot convert parameter 1 from 'BITMAPINFO *' to 'BITMAPINFO *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "
file://c:\Documents and Settings\General\My Documents\Visual Studio Projects\PCIcameraSDK\Debug\BuildLog.htm"
PCIcameraSDK - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
It seems like when it calls the SetBmpInfo(BITMAPINFO*) function from PCClib.dll, it expects the old definition of the BITMAPINFO structure and it cannot handle it when I make this redefinition.