Original Post
This has to do with the source code from Programming Role playing games with DirectX9 second edition. Anyone with that book would know the problem I am talking about but maybe someone could help me who doesnt. Anyways the code i am having trouble with is in Chapter 16 "The Tower". Windows.cpp cGraphics *Graphics; m_Height = m_Font->GetFontCOM()->DrawText(&Graphics, m_Text,sizeof(m_Text), &Rect, DT_CALCRECT | DT_WORDBREAK, 0xFFFFFFFF); They had Drawtext there with another format which is outdated and does not work with DX9. So I updated it with the new DrawText function and it asks for a &Sprite in the first parameter. Now I just defined a sprite to see if it would go but that did not work, I tried NULL as well. Now what I mean by it does not work is the game runs but you don't see the menu, text, and the sprites drag across the screen. In other terms its useless. My question can anyone help me fix this because this line is located Windows.cpp yet anything declared as a sprite is in Graphics.cpp which leaves me with a unidentified sprite if I was to try to call it from the other cpp. Any help would be appreciated!!! Contacts: AIM:LedLoaf Email:LedLoaf@comcast.net PS: If you own the book and have edited the source code yourself please send me it or explain how it could be fixed! Thanks!