Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
mapo is currently offline  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 Go to previous message
mapo is currently offline  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
Previous Topic: Debugging doesn't work with 711-dev2, win32, and mingw
Next Topic: Problem with MSC8 compiler and MySql.h
Goto Forum:
  


Current Time: Fri Apr 26 01:41:05 CEST 2024

Total time taken to generate the page: 0.07270 seconds