use d3d9.dll

Posted on 2005-04-18
Last Modified: 2012-06-27
I would like to use the d3d9.dll instead of the d3d9d.dll which is debug. How do I do this

Question by:nielsboldt
    LVL 39

    Expert Comment

    What platform/compiler are you using?

    On VC6 you would change the settings at Project - Settings - Link - Category Input - Object/Library modules. There are different settings for Debug\Release.

    However, that only works for statically loaded dll's.

    Regards, Alex

    Author Comment

    sorry - visual studio 2003 version 7.1 of vcc

    LVL 86

    Assisted Solution

    As Alex wrote - change your project setup to "Release Build". Also, use the dependency walker ( to see if other modules you are using reference the debug version of that DLL and correct that if necessary.
    LVL 8

    Accepted Solution

    I don't really ever see outside modules link d3d9 specifically so I thnk you're safe there.

    For VC7+:

    'Project' menu -> 'Project_Name settings' -> 'Linker' tab on left -> Input tab on left.

    This opens the page with the input linker settings.  You need to set 'Additional Dependencies' list to have 'd3d9.lib' in the list.  Take out any d3d9d.lib settings.

    To make sure the debug libraries are in the debug build and the release libraries are in the release build, perform the same action for 'Debug' and 'Release' by selecting each one from the top left combo box on the same window.

    Be sure to change any other DirectX libraries to debug and release appropriately.


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
      Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
    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.
    The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now