Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Problem with compilation when using dshow.h
Problem with compilation when using dshow.h [message #13282] |
Fri, 28 December 2007 23:18  |
mapo
Messages: 5 Registered: September 2007
|
Promising Member |
|
|
Hi,
i`m developing windows application which needs some functionality from DirectoShow, so I include <dshow.h>.
But, i get following compilation errors:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\ocidl.h(2809) : error C2061: syntax error : identifier 'CY'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\ocidl.h(2812) : error C2061: syntax error : identifier 'CY'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\olectl.h(153) : error C2146: syntax error : missing ';' before identifier 'cySize'
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\olectl.h(153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\olectl.h(153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
if i create "Console application no (U++)" and #include <dshow.h> somewhere it compiles fine, but as soon as i add #include <CtrlLib/CtrlLib.h>
using namespace Upp;
i get those errors above.
7edcd8e6f33ea538d7d44a5487ef4566
|
|
|
Re: Problem with compilation when using dshow.h [message #13283 is a reply to message #13282] |
Fri, 28 December 2007 23:26  |
mapo
Messages: 5 Registered: September 2007
|
Promising Member |
|
|
I studied a bit of upp code, and found folowing define statement:
#define CY win32_CY_
if i include dshow.h this way:
#define CY win32_CY_
#include <dshow.h>
#undef CY
then compilation goes well.
Is this the correct way i should include dshow.h or there is some better way?
7edcd8e6f33ea538d7d44a5487ef4566
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:35:37 CEST 2025
Total time taken to generate the page: 0.00956 seconds
|