Compiler Issue or human error?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux