everytime i try ti make a class with constructors and Destructors, it messed up. it tells me that the distructor is a mismatch ort what ever.
here is my code.
class Cor_CDirect3D9Renderer
{
public:
int Cor_Direct3D9Renderer();
virtual ~Cor_Direct3D9Renderer();
int Cor_CDirect3DRenderer9(HWND hwnd, int width, int height, bool fullscreen);
void Cor_Sync();
LPDIRECT3D9* Cor_ReturnDirect3D9();
LPDIRECT3DDEVICE9* Cor_ReturnDirect3DDevice9();
LPDIRECT3DSURFACE9* Cor_ReturnBackBuffer();
D3DPRESENT_PARAMETERS* Cor_ReturnPresentParams();
private:
LPDIRECT3D9 Cor_Direct3D9;
LPDIRECT3DDEVICE9 Cor_Direct3DDevice9;
D3DPRESENT_PARAMETERS Cor_PresentParams;
LPDIRECT3DSURFACE9 Cor_BackBuffer;
};
1>c:\documents and settings\directx\my documents\visual studio 2008\projects\cor_direct3d9\cor_direct3d9\Cor_CDirect3D9.h(15) : error C2523: 'Cor_CDirect3D9Renderer::~Cor_Direct3D9Renderer' : destructor tag mismatch
1>.\Cor.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
I think i figured out how to get rid of Access violations. just initialize every variable in the class in the constructor to be NULL, that'll get rid of the access violations, maybe. Anyways, can you guys help me with this annoying error concerning the destructor?