private member prob

D

Dave

simple problem, sorry. I've got a class:

class CDirect3DEngine
{
public:
CDirect3DEngine();
~CDirect3DEngine();
HRESULT InitD3D (HWND hWnd);
ID3DXMesh* Mesh;
private:
CLoadOBJFile LoadOBJFile;
LPDIRECT3D9 g_pD3D; //Direct3D object
LPDIRECT3DDEVICE9 g_pd3dDevice; //Direct3D device
LPDIRECT3DVERTEXBUFFER9 g_pvb; //Vertex Buffer
LPDIRECT3DTEXTURE9 g_pTexture; //Texture
};

in the function InitD3D, it says g_pD3D is an undeclared identifier. Any
ideas why?

Also, another question. What would happen if i made a class but did not
include the constructor and destructor declarations? I'm guessing they'd
never get called, but what specifically would this cause?

cheers
dave
 
D

Dave

ahhh got the solution. sorry guys, just a dodgy typo. not used to the whole
case-critical code idea. ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top