PDA

View Full Version : Compile errors



giadif
August 9, 2006, 14:32:52
After installing the IC 3.0.1 V I loaded the VC++6 sample DemoApp and tried to compile it. The error I got are the following:

--------------------Configuration: DemoApp - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
d:\programmi\microsoft directx 9.0 sdk (june 2005)\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
d:\programmi\microsoft directx 9.0 sdk (june 2005)\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
d:\programmi\microsoft directx 9.0 sdk (june 2005)\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
d:\programmi\microsoft directx 9.0 sdk (june 2005)\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
d:\programmi\microsoft directx 9.0 sdk (june 2005)\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
d:\programmi\microsoft directx 9.0 sdk (june 2005)\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
Error executing cl.exe.

DemoApp_vc6.exe - 6 error(s), 0 warning(s)

Then I tried adding to ClassLib\Include\dshow_header.h the following rows

typedef long LONG_PTR;
typedef unsigned long ULONG_PTR;
typedef ULONG_PTR DWORD_PTR;

and now I get this error:

VideoCaptureDialogData.cpp
D:\Programmi\IC Imaging Control 3.0\samples\vc6\Dialogs\VideoCaptureDialogData.cpp (177) : error C2065: 'sprintf_instead_use_StringCbPrintfA_or_StringCchP rintfA' : undeclared identifier
Error executing cl.exe.

DemoApp_vc6.exe - 1 error(s), 0 warning(s)

Any idea? :)

Stefan Geissler
August 9, 2006, 14:53:51
Hello,

It is the same problem as in the previous thread (http://www.theimagingsourceforums.com/showthread.php?t=319107)

The new DirectX SDK does not work correctly with VC++ 6.0. You may send a request to support@imagingcontrol.com