   [DirectDX 10]Direct3D text not showing up
  [color="#333333"][font="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"]I'm writing a simple game engine and the first thing I decided to do was to make it output text, but the problem is the text wont show upHere is my code[/font][color="#333333"][font="Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif"] [/font]//Initialize font and sprite objecthr = D3DX10CreateSprite(m_pD3DDevice, 512, &m_pSpriteObject);if(hr != S_OK)MessageBox(NULL, TEXT("Can't create the sprite object"), TEXT("ERROR!"), MB_OK);if(FAILED(D3DX10CreateFont(m_pD3DDevice, 35, 0, FW_BOLD, 1, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, TEXT("Helvetica"), &m_pFont)))  return FALSE;//Render functionvoid GameEngine::Render(){m_pD3DDevice->ClearRenderTargetView(m_pRenderTargetView, D3DXCOLOR(0.0f, 0.0f, 0.0f, 0.0f));m_pSpriteObject->SetProjectionTransform(&m_mxProjection);GamePaint();m_pSwapChain->Present(0, 0);}//Game paint functionvoid GamePaint(){g_pGame->DrawText(TEXT("This is a test"));}//DrawText functionvoid GameEngine::DrawText(LPCWSTR szText){RECT rect;SetRectEmpty(&rect);//Get the size of rectHRESULT hr = m_pFont->DrawTextW(NULL, szText, -1, &rect, DT_CALCRECT | DT_LEFT, D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f));if(FAILED(hr))MessageBox(m_hWindow, TEXT("DrawText Failed"), TEXT("Error!"), MB_OK);//Display recthr = m_pFont->DrawTextW(m_pSpriteObject, szText, -1, &rect, DT_LEFT, D3DXCOLOR(1.0f, 1.0f, 1.0f, 1.0f));if(FAILED(hr))MessageBox(m_hWindow, TEXT("DrawText Failed"), TEXT("Error!"), MB_OK);}Thank you in advance   
  Hello?   ;  Do you want your text to be set at a fixed point on your screen?If so, just set your rectangles position on your screen and draw your string.RECT rect = {5, 5, 0, 0};m_pFont->DrawText( 0, szText, -1, &rect, DT_NOCLIP, D3DXCOLOR( 1.0f, 1.0f, 1.0f, 1.0f ) ); ;  Thank you so much, it worked!   