?
Solved

DirectX 9 in a ATL COM

Posted on 2003-03-03
1
Medium Priority
?
483 Views
Last Modified: 2013-11-25
I have an ATL COM Project that has Directx9 code in it.  I have the include and lib directories pointed to the DXSDK appropriate folders.  But I get the following errors:

D:\MyProjects\Player\VOB.cpp(37) : error C2143: syntax error : missing ';' before '*'
D:\MyProjects\Player\VOB.cpp(37) : error C2501: 'IGraphBuilder' : missing storage-class or type specifiers
D:\MyProjects\Player\VOB.cpp(37) : error C2501: 'pGB' : missing storage-class or type specifiers
D:\MyProjects\Player\VOB.cpp(38) : error C2143: syntax error : missing ';' before '*'
D:\MyProjects\Player\VOB.cpp(38) : error C2501: 'IMediaControl' : missing storage-class or type specifiers
D:\MyProjects\Player\VOB.cpp(38) : error C2501: 'pMC' : missing storage-class or type specifiers

Can I use DirectX from a dll or am I forgetting to add something?


#include <dshow.h>
#include "stdafx.h"
#include "Player.h"
#include "VOB.h"


Thanks
0
Comment
Question by:Evaus
[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
1 Comment
 
LVL 4

Accepted Solution

by:
Chase707 earned 1200 total points
ID: 8066293
Strange -- of course you can use directx in a DLL.

Maybe if you try this:

#include "stdafx.h"
#include <dshow.h>
#include "Player.h"
#include "VOB.h"



usually VC++ Requires the precompiled header include as the first include.

Chase707
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

764 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