Show us the code that failed to compile. Cut and paste, don't retype. Either
you're not understanding your problem, or your compiler is seriously
broken.
I have gone through MS documentation, did not understood,
please note that W4 warning level is used.
d:/devstudio_6.0/vc98/bin/cl.exe -DMFCDebug -D_DEBUG -DDEBUG -DRWDEBUG
-DWIN32 -D_MBCS -D_AFXDLL -D_WINDOWS -DWinNT400 -DMSVC60 -
DAFX_NOVTABLE= -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_RWTOOLSDLL -
D_
UNICODE -DUNICODE -DO_DLL_PCLASS_ONLY -DBUILD_OcsLog -D_WINDLL -
DCSA_HAS_DLL=1 -DACE_HAS_DLL=1 -ID:\Syngo\include\STLPort -Iw:
\WorkSpaces\DO\include -Iw:\WorkSpaces\src\include -ID:\Syngo\include -
I
D:\include -ID:\syngo\versant\vds605\h -ID:\SDK\include -Id:/
devstudio_6.0/vc98/include -Id:/devstudio_6.0/vc98/atl/include -Id:/
devstudio_6.0/vc98/MFC/include -Iw:\WorkSpaces\src\VT\Components\Log
\sr
c -nologo -MDd -Od -Z7 -GR -GX -G5 -X -GF -EHa -FoOcsLog.obj -
c -W4 w:\WorkSpaces\src\VT\Components\Log\src/OcsLog.c
OcsLog.c
w:\WorkSpaces\src\include\VT/Components/Log/OcsLog.h(21) : error
C2061: syntax error : identifier 'WriteLog'
w:\WorkSpaces\src\include\VT/Components/Log/OcsLog.h(21) : error
C2059: syntax error : ';'
w:\WorkSpaces\src\include\VT/Components/Log/OcsLog.h(21) : error
C2059: syntax error : 'type'
w:\WorkSpaces\src\VT\Components\Log\src/OcsLog.c(5) : error C2061:
syntax error : identifier 'WriteLog'
w:\WorkSpaces\src\VT\Components\Log\src/OcsLog.c(5) : error C2059:
syntax error : ';'
w:\WorkSpaces\src\VT\Components\Log\src/OcsLog.c(5) : error C2059:
syntax error : 'type'
omake: Shell line exit status 2. Stop.
// the header file
#ifndef _OcsLog_h
#define _OcsLog_h 1
bool WriteLog(const char* lpszApp, unsigned short wType, const char*
lpszMessage);
#endif
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
the implementation file
bool WriteLog(const char* lpszApp, unsigned short wType, const char*
lpszMessage)
{
/* I have commented the code */
return true;
}