Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get d3dx10math.h into my project?

1,767 views
Skip to first unread message

huh?

unread,
Jun 23, 2009, 12:47:01 AM6/23/09
to

I have just started using 2008 c++ express and want to know the best way to
pull in an include file provided by MS.

I want to use functions in the d3dx10math.h file. So I need to include it
into my project. How should I add this file to my project.

Should I copy it from its source into my project dir?

Or should I leave it where it is? If I do, how do I add it to my project so
its pulled in when compiling.?

Chuck Walbourn [MSFT]

unread,
Jun 24, 2009, 3:28:02 PM6/24/09
to

Add the DirectX SDK include and lib folders to your project directories
settings in Visual Studio (Tools/Options Projects & Solutions under VC++
Directories. It is generally best to include "D3DX10.H" rather than any of
the 'internal' headers like "D3DX10MATH.H", and you will need to link with
D3DX10.LIB.

Furthermore, this means your application makes use of some version of
D3DX10_*.DLL which is NOT included as part of the OS. It is installed by the
DirectX SDK Setup for development. Users of your application will need to
use the REDIST. See the DirectX Installation for Game Developers article:
<http://msdn.microsoft.com/en-us/library/bb219742(VS.85).aspx>

--
-Chuck Walbourn
SDE, XNA Developer Connection

This posting is provided "AS IS" with no warrenties, and confers no rights.
"huh?" <h...@discussions.microsoft.com> wrote in message
news:1C1425F0-5801-46FA...@microsoft.com...

Mich Po

unread,
Feb 25, 2021, 3:11:50 PM2/25/21
to
0 new messages