Original Post
🔒 Locked
D3DXCreateFont()
Advertisement
We can't tell you without any clues. Post the code. Check the function return value and log it on failure. Make use of DXGetErrorString9 and DXGetErrorDescription9.
Sorry... My code is like below.
Most of computer have no problem in this line.
Only few computer return Fail.
if( FAILED( hr = D3DXCreateFont( lpD3DDev,
15,
0,
FW_SEMIBOLD,
0,
FALSE,
DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_DONTCARE,
TEXT("Arial"),
&m_pFont ) ) )
Most of computer have no problem in this line.
Only few computer return Fail.
if( FAILED( hr = D3DXCreateFont( lpD3DDev,
15,
0,
FW_SEMIBOLD,
0,
FALSE,
DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_DONTCARE,
TEXT("Arial"),
&m_pFont ) ) )
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement