Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8174343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:25:44+00:00 2026-06-06T22:25:44+00:00

the guy that asks weird things, here, again I see that they use different

  • 0

the guy that asks weird things, here, again

I see that they use different executables, for a game that was created for both directx 9 and 10. It is possible to include “d3d9.h” and “d3d10.h” in a code file, then select direct3d 9 functions or direct3d 10 functions, depending on, for example, an argument that acts like a flag? I am not talking about drawing something using a direct3d 10 function using a direct3d 9 context and object.

What I want to do is create a function called init3D(UINT version); Depending on version, it will create a directx 9 or directx 10 object and device. I don’t know if that is possible or I must create two different executables (or 3 if I decide to use d3d8, too)

Thanks for your help and forgive my lack of understanding with some of the C++ techniques.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:25:52+00:00Added an answer on June 6, 2026 at 10:25 pm

    Yes it’s entirely possible.

    The only issue is that the libraries for both must exist on the target machine. Because you’ve linked with d3d10 it must be installed on the machine for your .exe to even load even if you want to run in d3d9 mode, and that won’t be the case on xp machines.

    To avoid this you’ll need to use dynamic linking to call any functions so that the libraries are only loaded at run time. Look up LoadLibrary and GetProcAddress. Luckily with direct3d the only global functions you’ll likely call are the “create” functions. D3DX will cause the same issues though

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ArrayList's Iterator class ArrayList.Itr is private, so I can't subclass that guy. The things
I see some code of some guy that goes like this: while (!(baseType ==
I have an SEO guy that is confusing me. He mentioned that in Google
(Disclaimer: I am a C# guy. I've just started learning Clojure.) I understand that
I'm a RDBMS guy that has a project that I believe will work really
Working on a Data Warehouse project, the guy that gave us the tutorial advised
http://visualidiot.com/articles/hacking-facebook Going to any article on this website, you'll see that the main body
Yesterday i received an email from a guy that our site is vulnerable to
Call me crazy, but I'm the type of guy that likes constructors with parameters
I have to do some work with Q Learning, about a guy that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.