Sign in to follow this  
Guest ba747heavy

DirectX Questions

Recommended Posts

Hey all--I have a basic question, one that has me pulling my hair out! I am trying to set up DX 9 for use in my gauge. I cannot find any information in the SDK docs about what to include. Use of the app wizard in VC++ doesn't help, as that template is for an actual app, and not a dll. At least I am smart enough to have converted my gauge file(as it is with no DX) into C++ to minimize the problem with incorperating DX into my gauge. :)I am at a loss, what should I do?Thanks guys.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hey Fred.As far as I know, for DirectX 8, all you needed to do was

#include <d3d8.h>#include <d3dx8.h>

You might wanna give that a try with a 9, or search your HD where you installed the DirectX SDK for similar files, if just switching the 8 by a 9 doesn't do it.

Share this post


Link to post
Share on other sites

I depends on what part of DirectX you need. E.g. for DirectInput #include and linking of dinput.lib and dxguid.lib is enough, indepenent of the used DirectX version.Arne Bartels

Share this post


Link to post
Share on other sites

Well, got the gauge working, it now compiles with DX only data types declared :) I am wondering now if I can approach the DX portion of my gauge like in the Tut01_CreateDevice included with the DX 9 SDK? Or is there something I have to do special in a dll?Thanks :-beerchug

Share this post


Link to post
Share on other sites

Hey Fred.I am starting to delve into DX myself, so I can't answer that yet. And also, I haven't looked at the Tutorial yet, reading a good book on it first, understanding how WIndows goes about drawing using DirectX.If I discover anything, I'll let you know. And you please do the same ;-).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this