Original Post
I am new to Dx but am trying in vain to learn it, I have a selection of books and been reading tutorials. I have a problem with my code and cannot see what the problem is, can anyone help? BOOL CApplication::RenderFrame() { if ( !m_bIsActive ) { return TRUE; } m_graphics.Clear( D3DCOLOR_ARGB( 0, 0, 0, 0 ) ); m_graphics.BeginScene(); /* My code to put a sprite on the screen */ HRESULT hResult; IDirect3DSurface9* surface; hResult = CreateOffscreenPlainSurface( 800, 600, D3DFMT_X8R8G8B8, D3DPOOL_DEFAULT, &surface, NULL); if (FAILED(hResult)) return NULL; hResult = D3DXLoadSurfaceFromFile( surface, NULL, NULL, "coffee.jpg", NULL, D3DX_DEFAULT, 0, NULL ); if ( FAILED( hResult ) ) return NULL; m_graphics.EndScene(); m_graphics.Present(); return TRUE; } This is the error i keep getting error C3861: 'CreateOffscreenPlainSurface': identifier not found, even with argument-dependent lookup All I want to do is get a bitmap onto the screen.