VMRMulti9 DIrectshow sample compile problem


Has anyone successfully built and run the VMRMulti9 sample in VS2005 C++ Express?

Has anyone built it in VS2003 or any other version of VS?

If so, could you please send me the project files. Or at least reassure me it can be done!

I've been able to build & run most other Directsshow samples, just not this one - the one I really want!

Cheers,
ryan.bennetts@gmail.com
ryanbeAsked:
Who is Participating?
 
Dariusz DziaraProgrammerCommented:
I have downloaded myself Visual C++ 2005 Express Edition yesterday and I have tried to compile "MultiVMR9" from "Summer 2004 Update" (not VMRMulti9 because I couldn't find it although, it' s funny, it looks quite familiar to me).

This it what I got:

1. .SLN project was converted to newer version

2. When I tried to compile it:

[...]
Compiling...
VMR9Subgraph.cpp
c:\program files\microsoft directx 9.0 sdk (summer 2004)\samples\c++\directshow\vmr9\multivmr9\gameplayer\stdafx.h(16) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
StdAfx.cpp
c:\program files\microsoft directx 9.0 sdk (summer 2004)\samples\c++\directshow\vmr9\multivmr9\gameplayer\stdafx.h(16) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
StartDialog.cpp
c:\program files\microsoft directx 9.0 sdk (summer 2004)\samples\c++\directshow\vmr9\multivmr9\gameplayer\stdafx.h(16) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
MultiGraphSession.cpp
[...]

It looks like MFC problem so I've checked if there's MFC at all in VC++ Express Edition. Unterfortunately I don't see MFC directory nor 'afxwin.h' file.

My experience with Express edition is one experiance day but what comes to my mind is that it is possible that it simply doesn't support everything what is necessary to compile such project (not sure of course).
I have noticed that there's no MFC in Express Edition for example ('afxwin.h' means that MFC is used).
From the other hand I have impression that I had successfully compiled "MultiVMR9" in Visual C++ 6.0 some time ago.

0
 
jkrCommented:
What errors are you getting - and where did you get the sample from?
0
 
ryanbeAuthor Commented:
I first downloaded the April 2005 platform SDK which has the directshow samples.
These samples have no solution/project files so in VS 2005 C++ Express I went File->New->Project from Existing Code and created the multiplayer sample that way. I seemed to make progress with the compile errors but could not quite crack it. Believe me I made a huge effort over several days. Finally decided it should not be this hard! - since it's supposed to be a ready to go sample!

At the advice of mrblue I downloaded the Summer 2004 DirectX SDK but it has been the same story with this.

I was able to build the dll and gameplayer sub samples, although gameplayer crashes when run!, but its the multiplayer one that I want. I have been building the dll, gameplayer, and multiplayer as seperate solutions, perhaps that's my mistake? I don't think so as they are seperate solutions in directx samples.

I would appreciate help with getting it to build, but at this point, I just want to know if it can be done! And ideally receive the project files to prove it.

Help please!  I haven't much hair left!
0
 
ryanbeAuthor Commented:
Very interesting! I will give Visual C++ 6.0 a go and keep you posted. Cheers.
0
 
ryanbeAuthor Commented:

Yup, no problems in VC 6.0, after additional install of some non-standard mfc files. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.