# Getting Directshow 9 and Dev-C++ to work

This topic is 4676 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I am helping an artist friend with a project whcih he has to put into a game engine. Unfortunately they have been shown to use Bloodshed DevC++ and I am used to using .Net. I was trying to get video playback going (he wants some triggered videos) but Directshow just seems to cause nothing but problems. I have seen the article here on gamedev about getting dx8.1 to work with Dev-C++ and read the part on directshow, unfortunately the line numbers the article says to comment out don't seem to relate to the correct lines, I assume directshow was changed in the update to 9 (which is what is being used). I'm away from the computer with the work on at the moment so I can't post any errors and so on but I will as soon as i can, I think it says something about GUID redeclaration. Does anyone know how to get DevC++ working with DirectShow9? Or can point me in the right direction? Any help would be really appreciated as we're a bit stuck without it! Thanks BA

##### Share on other sites
Compiler or linker errors? Post the errors here. Wrapped in source tags.

##### Share on other sites
Hopefully this
link will help. Although I would just recommend using the free Visual C++ 2005 Express Edition.

##### Share on other sites
Yeah sorry for not posting the errors originally but all the work was in university.

in vid.h
#include <dshow.h>

in 3impactDLL.cpp
#include "vid.h"
#pragma comment(lib, "STRMIIDS.LIB")

Compiler: Default compilerBuilding Makefile: "C:\Program Files\3impact4\3ImpactDLL\LeeBallGame\Makefile.win"Executing  make...make.exe -f "C:\Program Files\3impact4\3ImpactDLL\LeeBallGame\Makefile.win" allg++.exe -c 3impactDLL.cpp -o ./3impactDLL.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"  -I"C:/DXSDK/Include"     -wIn file included from C:/DXSDK/Include/dshow.h:46,                 from vid.h:6,                 from 3impactDLL.cpp:20:C:/DXSDK/Include/strmif.h:20565: error: expected constructor, destructor, or type conversion before '(' tokenC:/DXSDK/Include/strmif.h:20565: error: expected ,' or ;' before '(' tokenC:/DXSDK/Include/strmif.h:28961: error: declaration of GUID tagVMRGUID::GUID'C:/Dev-Cpp/include/winnt.h:1351: error: changes meaning of GUID' from typedef struct _GUID GUID'In file included from 3impactDLL.cpp:20:vid.h: In function long int PlayVideo(HWND__*, BOOL, char*)':vid.h:87: error: assert' undeclared (first use this function)vid.h:87: error: (Each undeclared identifier is reported only once for each function it appears in.)make.exe: *** [3impactDLL.o] Error 1Execution terminated`

thanks for the link programwizard I knew that DevC++ used different library files but beyond that I'm pretty clueless, not sure this would solve the problem in this case though, unless the reimp utility actually edits the file contents? I did however notice after some rooting around on the PC here at uni that the DevC++ lib folder does not contain a libdshow.a file so I will probably give this a try, unfortunately I can't get to the command prompt at uni so it will have to wait until I can do it at home and bring it in!!

As for using Visual C++, thats what I would do but they have been taught using bloodshed so... I might try and set it up with .net but now I am curious.

PS it is bloodshed v4.9.9.2

1. 1
Rutin
33
2. 2
3. 3
4. 4
5. 5

• 13
• 9
• 9
• 9
• 14
• ### Forum Statistics

• Total Topics
633329
• Total Posts
3011382
• ### Who's Online (See full list)

There are no registered users currently online

×