?
Solved

DEV C++ direct X #include <dshow.h> errors and problems

Posted on 2004-08-16
8
Medium Priority
?
905 Views
Last Modified: 2008-01-09
Hi people. Im a little off lately...

 I have a problem here with my dev C++ 4 compiler...  i need to create a component that show the image of a webcam. So, for that, i have the direct x packedge libraries and include files downloaded from www.bloodshed.net...

I set up everything as the readme.txt file that cames with the packedge says to, and in my program i include dshow.h ...

#include <windows.h>
#include <dshow.h>

 int WINAPI WinMain(HINSTANCE h, HINSTANCE ph, LPSTR par, int show)
  {
   return 0;
  }

Here is the message errors im having, and its impossible to compile becouse of them:

36 c:\dev-c++\include\dx8\dshow.h
 from c:\escola\interface software iedec\final development\main.cpp:3:
21 c:\dev-c_~1\include\mmsystem.h
 warning: `MAKEFOURCC' redefined
69 c:\dev-c++\include\dx8\ddraw.h
 warning: this is the location of the previous definition
45 c:\dev-c++\include\dx8\dshow.h
 from c:\escola\interface software iedec\final development\main.cpp:3:
28 c:\dev-c++\include\dx8\strmif.h
 #error this stub requires an updated version of <rpcndr.h>
45 c:\dev-c++\include\dx8\dshow.h
 from c:\escola\interface software iedec\final development\main.cpp:3:
715 c:\dev-c++\include\dx8\strmif.h
 ocidl.h: No such file or directory

how can i solve this problem??? thanks to all!!!
0
Comment
Question by:richardomus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 11810191
>>how can i solve this problem???

Update your SDK from http://support.microsoft.com/default.aspx?pr=psdk
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 11823183
The Windows SDK that came with your dev C++ 4 compiler is older than that required by the WebCam software. I would recommend not only to update the SDK but get a newer Compiler as well.

Maybe you could ask these bloodshed people what kind of compiler they would recommend.

Regards, Alex


0
 
LVL 86

Accepted Solution

by:
jkr earned 1000 total points
ID: 11823216
>> The Windows SDK that came with your dev C++ 4 compiler is older than that required

I thought "Update your SDK" would imply that...
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 11823371
>> I thought "Update your SDK" would imply that...

I know three words from jkr could imply more than thousand words of us minor experts ... but maybe the questioner didn't know that up to now ...  ;-)

Regards, Alex
0
 
LVL 86

Expert Comment

by:jkr
ID: 12091900
I'd say this Q is answered.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question