troubleshooting Question

How do I include the DirectX headers in an ATL ActiveX control?

Avatar of jvoros1
jvoros1 asked on
C++Microsoft Development
5 Comments1 Solution443 ViewsLast Modified:
I'm trying to create an ActiveX control which utilizes DirectX 8 but I'm having a hard time.

1. I create a new ATL Project.
2. In class view I added a class to the project to create the control
3. I copy the directx8 header files into the projects directory
4. Go into project properties->C/C++->General->Additional Include Directories and add the directX folder
5. Compile

Every time I get these two errors:

c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ExDisp.h(1119) : error C2061: syntax error : identifier 'SHANDLE_PTR'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ExDisp.h(1634) : error C2061: syntax error : identifier 'SHANDLE_PTR'

How do I get around this problem?  (I have to use DirectX8, I can't use a newer version due to code that I will be importing in the future)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros