I want to compile this whole project (see link below)
While building the loggertest_src.zip solution I get it to compile but I got three warnings.
The following is the log for the loggertest_src.zip solution
In it the log says WINVER not defined. How to define it for Windows XP, it says defaulting
to VISTA, but I'm running XP. And there are three warnings.
Code:
1>------ Rebuild All started: Project: LoggerTest, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'LoggerTest', configuration
'Debug|Win32'
1>Compiling...
1>StdAfx.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>Compiling...
1>ClientPipeInstance.cpp
1>Logger.cpp
1>c:\documents and
settings\manzoor\desktop\loggertest_src\usr\src\logger\common\logger.cpp(128) : warning
C4996: '_snprintf': This function or variable may be unsafe. Consider using _snprintf_s
instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> f:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : see
declaration of '_snprintf'
1>c:\documents and
settings\manzoor\desktop\loggertest_src\usr\src\logger\common\logger.cpp(130) : warning
C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s
instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> f:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : see
declaration of '_vsnprintf'
1>LoggerTest.cpp
1>c:\documents and
settings\manzoor\desktop\loggertest_src\usr\src\logger\loggertest\loggertest.cpp(54) :
warning C4996: 'CWinApp::Enable3dControlsStatic': CWinApp::Enable3dControlsStatic is no
longer needed. You should remove this call.
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(4821) :
see declaration of 'CWinApp::Enable3dControlsStatic'
1>LoggerTestDlg.cpp
1>SecurityToken.cpp
1>Sleeper.cpp
1>Generating CODE...
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>Embedding manifest...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://C:\Documents and
Settings\Manzoor\Desktop\loggertest_src\usr\src\logger\LoggerTest\Debug\BuildLog.htm"
1>LoggerTest - 0 error(s), 3 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
>
Now how to compile the loggerclient_src.zip, all it contains are header files and .cpp
files. Should I create a new project and import all the files and then simply build the it.
And with loggerservice_src.zip, when I opened the .dsw file (VC++ 6 Workspace) I got the
offer to convert it to the current C++ project format, so I clicked Yes to All, and after
that another window popped up which says "The source control provider associated with this
solution could not be found. The projects will be treated as not under source control.
Do you want to permanently remove the source control bindings from the projects?"
I got the option of Yes, No, Help
When I clicked Yes, I got this log
Code:
1>------ Build started: Project: logger, Configuration: Debug Win32 ------
1>Creating Type Library...
1>Processing .\logger.idl
1>logger.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\oaidl.idl
1>oaidl.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\objidl.idl
1>objidl.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\unknwn.idl
1>unknwn.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\wtypes.idl
1>wtypes.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\basetsd.h
1>basetsd.h
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\guiddef.h
1>guiddef.h
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\ocidl.idl
1>ocidl.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\oleidl.idl
1>oleidl.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\servprov.idl
1>servprov.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\urlmon.idl
1>urlmon.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\msxml.idl
1>msxml.idl
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\oaidl.acf
1>oaidl.acf
1>Processing C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\ocidl.acf
1>ocidl.acf
1>Compiling...
1>StdAfx.cpp
1>statreg.cpp is obsolete. Please remove it from your project.
1>atlimpl.cpp is obsolete. Please remove it from your project.
1>Compiling...
1>logger.cpp
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(90)
: error C2220: warning treated as error - no 'object' file generated
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(90)
: warning C4996: 'ATL::CRegKey::SetValue': CRegKey::SetValue(TCHAR *value, TCHAR *valueName)
has been superseded by CRegKey::SetStringValue and CRegKey::SetMultiStringValue
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h(5123) :
see declaration of 'ATL::CRegKey::SetValue'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(91)
: warning C4996: 'ATL::CRegKey::SetValue': CRegKey::SetValue(TCHAR *value, TCHAR *valueName)
has been superseded by CRegKey::SetStringValue and CRegKey::SetMultiStringValue
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h(5123) :
see declaration of 'ATL::CRegKey::SetValue'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(252)
: warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using
vsprintf_s instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help
for details.
1> f:\program files\microsoft visual studio 9.0\vc\include\stdio.h(366) : see
declaration of 'vsprintf'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(444)
: warning C4996: 'ATL::CRegKey::QueryValue': CRegKey::QueryValue(TCHAR *value, TCHAR
*valueName) has been superseded by CRegKey::QueryStringValue and
CRegKey::QueryMultiStringValue
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h(5135) :
see declaration of 'ATL::CRegKey::QueryValue'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(518)
: warning C4996: '_tcstok': This function or variable may be unsafe. Consider using
_tcstok_s instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
1> f:\program files\microsoft visual studio 9.0\vc\include\tchar.h(1550) : see
declaration of '_tcstok'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(519)
: warning C4996: '_tcstok': This function or variable may be unsafe. Consider using
_tcstok_s instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
1> f:\program files\microsoft visual studio 9.0\vc\include\tchar.h(1550) : see
declaration of '_tcstok'
1>LogInstance.cpp
1>c:\documents and
settings\manzoor\desktop\loggerservice_src\usr\src\logger\loginstance.cpp(174) : error
C2220: warning treated as error - no 'object' file generated
1>c:\documents and
settings\manzoor\desktop\loggerservice_src\usr\src\logger\loginstance.cpp(174) : warning
C4996: '_splitpath': This function or variable may be unsafe. Consider using _splitpath_s
instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> f:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(786) : see
declaration of '_splitpath'
1>LogMap.cpp
1>PipeData.cpp
1>SecurityToken.cpp
1>ServerPipeInstance.cpp
1>Sleeper.cpp
1>Generating CODE...
1>Build log was saved at "file://C:\Documents and
Settings\Manzoor\Desktop\loggerservice_src\usr\src\logger\Debug\BuildLog.htm"
1>logger - 2 error(s), 7 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Now when I clicked No, I got this log
Code:
1>------ Build started: Project: logger, Configuration: Debug Win32 ------
1>Compiling...
1>StdAfx.cpp
1>statreg.cpp is obsolete. Please remove it from your project.
1>atlimpl.cpp is obsolete. Please remove it from your project.
1>Compiling...
1>logger.cpp
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(90)
: error C2220: warning treated as error - no 'object' file generated
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(90)
: warning C4996: 'ATL::CRegKey::SetValue': CRegKey::SetValue(TCHAR *value, TCHAR *valueName)
has been superseded by CRegKey::SetStringValue and CRegKey::SetMultiStringValue
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h(5123) :
see declaration of 'ATL::CRegKey::SetValue'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(91)
: warning C4996: 'ATL::CRegKey::SetValue': CRegKey::SetValue(TCHAR *value, TCHAR *valueName)
has been superseded by CRegKey::SetStringValue and CRegKey::SetMultiStringValue
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h(5123) :
see declaration of 'ATL::CRegKey::SetValue'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(252)
: warning C4996: 'vsprintf': This function or variable may be unsafe. Consider using
vsprintf_s instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help
for details.
1> f:\program files\microsoft visual studio 9.0\vc\include\stdio.h(366) : see
declaration of 'vsprintf'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(444)
: warning C4996: 'ATL::CRegKey::QueryValue': CRegKey::QueryValue(TCHAR *value, TCHAR
*valueName) has been superseded by CRegKey::QueryStringValue and
CRegKey::QueryMultiStringValue
1> f:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h(5135) :
see declaration of 'ATL::CRegKey::QueryValue'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(518)
: warning C4996: '_tcstok': This function or variable may be unsafe. Consider using
_tcstok_s instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
1> f:\program files\microsoft visual studio 9.0\vc\include\tchar.h(1550) : see
declaration of '_tcstok'
1>c:\documents and settings\manzoor\desktop\loggerservice_src\usr\src\logger\logger.cpp(519)
: warning C4996: '_tcstok': This function or variable may be unsafe. Consider using
_tcstok_s instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
1> f:\program files\microsoft visual studio 9.0\vc\include\tchar.h(1550) : see
declaration of '_tcstok'
1>LogInstance.cpp
1>c:\documents and
settings\manzoor\desktop\loggerservice_src\usr\src\logger\loginstance.cpp(174) : error
C2220: warning treated as error - no 'object' file generated
1>c:\documents and
settings\manzoor\desktop\loggerservice_src\usr\src\logger\loginstance.cpp(174) : warning
C4996: '_splitpath': This function or variable may be unsafe. Consider using _splitpath_s
instead. To disable deCODEcation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> f:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(786) : see
declaration of '_splitpath'
1>Generating CODE...
1>Skipping... (no relevant changes detected)
1>LogMap.cpp
1>PipeData.cpp
1>SecurityToken.cpp
1>ServerPipeInstance.cpp
1>Sleeper.cpp
1>Build log was saved at "file://c:\Documents and
Settings\Manzoor\Desktop\loggerservice_src\usr\src\logger\Debug\BuildLog.htm"
1>logger - 2 error(s), 7 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Would anyone tell me a way to compile this whole project?