Jump to content
Sign in to follow this  
Guest ba747heavy

DirectX Questions

Recommended Posts

Guest ba747heavy

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
Guest Fabio Miguez

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
Guest bartels

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
Guest ba747heavy

Thanks for the replies guys :)

Share this post


Link to post
Share on other sites
Guest ba747heavy

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
Guest Fabio Miguez

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
Guest ba747heavy

Fabio --You got a deal :D

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...