Archived

This topic is now archived and is closed to further replies.

darkzim

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

Recommended Posts

darkzim    132
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

Share this post


Link to post
Share on other sites
darkzim    132
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!

Share this post


Link to post
Share on other sites
Agony    3452
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.

Share this post


Link to post
Share on other sites