Weird error: "unexpected "class" "CApp""

Started by
3 comments, last by darkzim 20 years, 2 months ago
Hi all. I got this error(unexpected "class" "CApp") when i tried to compile my code. Its in my application class header. I''ve tried to fix this error but I''ve had no luck. Here is the header: #ifndef CAPP_H #define CAPP_H #include "main.h" class CApp { public: CApp(); bool InitD3D(HWND hwnd); void start(); void end(); bool Draw(Vertex *verts, int numverts); inline IDirect3DDevice9 getdevice() {return &device} ~CApp(); private: IDirect3D9 *IMaster; IDirect3DDevice9 *device; }; #endif

---------------------------------darkzim

Advertisement
I''d say it''s something in main.h, line 6 to be exact.
Hey i went into main.h and found an include on line 6 and went to that file and found out I was missing a semi colon. I added it and it fixed the problem! THank you so much!

---------------------------------darkzim

Wow!
Way to go Leffe! I sorta had a guess it was a missing semicolon in main.h, but I have no idea whose arse you yanked line 6 out of.
"We should have a great fewer disputes in the world if words were taken for what they are, the signs of our ideas only, and not for things themselves." - John Locke

This topic is closed to new replies.

Advertisement