Just after I include D3DX9.H I get tons of errors... like these:

Error	12	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1987	1	Aura2
Error	13	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1987	1	Aura2
Error	14	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1987	1	Aura2
Error	15	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1988	1	Aura2
Error	16	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1988	1	Aura2
Error	17	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1988	1	Aura2
Error	18	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1989	1	Aura2
Error	19	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1989	1	Aura2
Error	20	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1989	1	Aura2
Error	21	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1990	1	Aura2
Error	22	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1990	1	Aura2
Error	23	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1990	1	Aura2
Error	24	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1992	1	Aura2
Error	25	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1992	1	Aura2
Error	26	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1992	1	Aura2
Error	27	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	1992	1	Aura2
Error	28	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2005	1	Aura2
Error	29	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2005	1	Aura2
Error	30	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2005	1	Aura2
Error	31	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2005	1	Aura2
Error	32	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2006	1	Aura2
Error	33	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2006	1	Aura2
Error	34	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2006	1	Aura2
Error	35	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2006	1	Aura2
Error	36	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2007	1	Aura2
Error	37	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2007	1	Aura2
Error	38	error C2039: 'm' : is not a member of 'D3DXMATRIX'	c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl	2007	1	Aura2

what should I do? I really need this header...

The compiler is right, D3DXMATRIX doesn't have a member named "m". However, D3DMATRIX does have such a member, which suggests you're not using the type you thought.

so which file I need to include? I need to use this type LPD3DXFONT.
when I include only d3dx9.h I get no errors, but I need both d3d.h and d3dx9.h ... but they seem not to like each other lol

and if I include d3d after d3dx9, the compiler still thinks that I didnt include the d3d and keep throwing me errors about undeclared identifiers.

I want to do whats here: http://www.toymaker.info/Games/html/text.html

Edited 5 Years Ago by lelejau: n/a

This article has been dead for over six months. Start a new discussion instead.