help debugging downloaded CIB class

hi i'm trying to use the class from the following link

http://www.dev-archive.com/cpp/g-m/bitmap/article.php/c1687/#more

but am getting the following errors

-------Configuration: LaunchDLL - Win32 Debug-------
Compiling...
CDib.cpp
LaunchDLL\CDib.cpp(7) : error C2258: illegal pure syntax, must be '= 0'
LaunchDLL\CDib.cpp(7) : error C2252: 'THIS_FILE' : pure specifier can only be specified for functions
LaunchDLL\CDib.cpp(10) : error C2535: 'class CObject *__stdcall CDib::CreateObject(void)' : member function already defined or declared
launchdll\cdib.h(9) : see declaration of 'CreateObject'
LaunchDLL\CDib.cpp(10) : error C2535: 'struct CRuntimeClass *__stdcall CDib::_GetBaseClass(void)' : member function already defined or declared
launchdll\cdib.h(9) : see declaration of '_GetBaseClass'
LaunchDLL\CDib.cpp(10) : error C2059: syntax error : '{'
LaunchDLL\CDib.cpp(10) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
LaunchDLL\CDib.cpp(10) : error C2535: 'struct CRuntimeClass *__thiscall CDib::GetRuntimeClass(void) const' : member function already defined or declared
launchdll\cdib.h(9) : see declaration of 'GetRuntimeClass'
LaunchDLL\CDib.cpp(10) : error C2059: syntax error : '('
LaunchDLL\CDib.cpp(10) : error C2059: syntax error : ')'
LaunchDLL\CDib.cpp(10) : error C2143: syntax error : missing ';' before ')'
LaunchDLL\CDib.cpp(10) : error C2238: unexpected token(s) preceding ';'
LaunchDLL\CDib.cpp(10) : error C2804: binary 'operator >>' has too many parameters
LaunchDLL\CDib.cpp(10) : error C2333: '>>' : error in function declaration; skipping function body
LaunchDLL\CDib.cpp(13) : error C2535: '__thiscall CDib::CDib(void)' : member function already defined or declared
launchdll\cdib.h(28) : see declaration of 'CDib::CDib'
LaunchDLL\CDib.cpp(22) : error C2535: '__thiscall CDib::CDib(class CSize,int)' : member function already defined or declared
launchdll\cdib.h(29) : see declaration of 'CDib::CDib'
LaunchDLL\CDib.cpp(49) : error C2535: '__thiscall CDib::~CDib(void)' : member function already defined or declared
launchdll\cdib.h(30) : see declaration of 'CDib::~CDib'
LaunchDLL\CDib.cpp(512) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

LaunchDLL.dll - 17 error(s), 0 warning(s)

can anyone help tell me whats going wrong please.

matt.
[2737 byte] By [flynny1st] at [2007-11-20 11:38:01]
# 1 Re: help debugging downloaded CIB class
Since you didn't show the sources of these errors the only answer is: try to search MSDN for all of these errors.
Example: BUG: C2258 and C2252 on in Place Initialization of Static Const Members ( http://support.microsoft.com/kb/241569/pl)
VictorN at 2007-11-10 22:24:44 >
# 2 Re: help debugging downloaded CIB class
Try attaching the CPP file YOU created for that code here, I dont see any error in the code on that page.
Krishnaa at 2007-11-10 22:25:50 >