Solved

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

Posted on 2004-08-16
8
876 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
  • 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Compile GLUT with Visual Studio 2015 1 111
convert char array to number in c 5 83
White board coding practice 3 80
C++ :Change value from  DisableCMD registry 4 51
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.

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now