For those who might need it:
HMODULE h = LoadLibrary("D3D9.DLL");
typedef IDirect3D9 * (WINAPI *pDirect3DCreate9)(UINT);
pDirect3DCreate9 proc = (pDirect3DCreate9)GetProcAddress(h,
"Direct3DCreate9");
LPDIRECT3D9 d = (*proc)(D3D_SDK_VERSION));
--
Chuck Walbourn
SDE, XNA Developer Connection
This posting is provided "AS IS" with no warranties, and confers no rights.
Yes, many of our customers are munnicipalities which mostly don't run the
latest software. Many of them are running Windows 2000, without the latest
DirectX (IT policy forbids individual users to upgrade their DirectX or
drivers).
Willem de Jonge