
Originally Posted by
dwks
Uh . . . I'm not sure; I've never used DirectX. Strangely enough, I recognize those images from when I was flipping through that book, though . . . .
But I think this guy has.
http://www.spacejack.org/games/mingw/mingw-dx.html
(Note the reference to the SDL!

)
I followed the instructions on that site for "the easy way"
Code:
In file included from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9mesh.h:15,
from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9.h:46,
from winmain.cpp:6:
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/dxfile.h:240: error: stray '\26' in program
In file included from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9mesh.h:15,
from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9.h:46,
from winmain.cpp:6:
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/dxfile.h:240:2: warning: no newline at end of file
In file included from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9mesh.h:15,
from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9.h:46,
from game.h:10,
from game.cpp:6:
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/dxfile.h:240: error: stray '\26' in program
In file included from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9mesh.h:15,
from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9.h:46,
from game.h:10,
from game.cpp:6:
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/dxfile.h:240:2: warning: no newline at end of file
game.cpp: In function `int Game_Init(HWND__*)':
game.cpp:35: warning: passing NULL used for non-pointer converting 2 of `IDirect3DSurface9* LoadSurface(char*, D3DCOLOR)'
game.cpp: In function `void Game_Run(HWND__*)':
game.cpp:97: error: `D3DXSPRITE_ALPHABLEND' was not declared in this scope
game.cpp:116: error: no matching function for call to `ID3DXSprite::Draw(IDirect3DTexture9*&, RECT*, NULL, D3DXVECTOR3*, D3DCOLOR)'
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9core.h:228: note: candidates are: virtual HRESULT ID3DXSprite::Draw(IDirect3DTexture9*, const RECT*, const D3DXVECTOR2*, const D3DXVECTOR2*, FLOAT, const D3DXVECTOR2*, D3DCOLOR)
In file included from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9mesh.h:15,
from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9.h:46,
from dxgraphics.cpp:6:
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/dxfile.h:240: error: stray '\26' in program
In file included from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9mesh.h:15,
from C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/d3dx9.h:46,
from dxgraphics.cpp:6:
C:/Documents and Settings/Administrator/Desktop/****/dx9sdk/Include/dxfile.h:240:2: warning: no newline at end of file