Sign in to follow this  

DirectX opening a window

Recommended Posts

Im having trouble opening a window in direct X. I'm completely new to direct X but have a reasonable knowledge of c++. Im using the latests version of Dev-c++ as my compiler. I get a compiler error when creating the device. This is the code im using to create the device. HRESULT r = 0; r = gD3dObject->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,g_hWndMain ,D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &gD3dDevice); The compiler error is: no matching function for call to `IDirect3D9::CreateDevice (int, _D3DDEVTYPE, HWND__*(&)(), long int, D3DPRESENT_PARAMETERS*, candidates are: virtual HRESULT IDirect3D9::CreateDevice(unsigned int, _D3DDEVTYPE, HWND__*, long unsigned I've no idea what this means really, and google efforts have gone in vain. Any help on the matter would be really appreciated. Thankyou in advance for any replies.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this