Eh .... memset(this,0,sizeof(this)); Don't you mean: memset(this,0,sizeof(*this)); Jacob -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx]On Behalf Of Kalinowski, Jeremy Sent: Thursday, 12 April, 2007 21:58 To: 'gcc-help@xxxxxxxxxxx' Subject: Compiler Issue or human error? Hey all, The reason I'm writing is because I created this very simple class and its not compiling. Now I know many people do this and are like why won't this compile, but I wanted to know if this is a compiler issue or just my human error. The errors I get are as follows: error: syntax error before "CThreadContext" CThreadContext.h:5: error: syntax error before '{' token CThreadContext.h:18: error: syntax error before '}' token Honestly I don't see what is going on and I'm worried I'm just not seeing something. Give me your thoughts. Also this is a header file. Thanks. #include <windows.h> #include <winbase.h> class CThreadContext{ public: CThreadContext(){ memset(this,0,sizeof(this)); } HANDLE m_hThread; DWORD m_dwTID; LPVOID m_pUserData; LPVOID m_pParent; DWORD m_dwExitCode; }; The information contained in this message is confidential and intended only for use of the designated recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error, and that any review, dissemination, distribution, copying, or alteration of this message is strictly prohibited. If you have received this communication in error, please notify the originator immediately and remove it from your system.