Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Setting Environment Variables Pin
Mark Salsbery26-Jul-08 5:57
Mark Salsbery26-Jul-08 5:57 
GeneralRe: Setting Environment Variables Pin
Bram van Kampen26-Jul-08 17:07
Bram van Kampen26-Jul-08 17:07 
QuestionCan ADO process excel well? [modified] Pin
followait25-Jul-08 16:14
followait25-Jul-08 16:14 
AnswerRe: Can ADO process excel well? Pin
Ștefan-Mihai MOGA25-Jul-08 18:48
professionalȘtefan-Mihai MOGA25-Jul-08 18:48 
Questionan alternative to StrToInt64Ex() Pin
reteset25-Jul-08 8:38
reteset25-Jul-08 8:38 
AnswerRe: an alternative to StrToInt64Ex() Pin
Mark Salsbery25-Jul-08 9:02
Mark Salsbery25-Jul-08 9:02 
AnswerRe: an alternative to StrToInt64Ex() Pin
Joe Woodbury25-Jul-08 9:27
professionalJoe Woodbury25-Jul-08 9:27 
QuestionHow to compile this project [modified] Pin
staticv25-Jul-08 7:34
staticv25-Jul-08 7:34 
Sorry for this long post

I want to compile this whole project (see link below)
http://www.codeproject.com/KB/cpp/loggerservice.aspx[^]

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.

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 deprecation, 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 deprecation, 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

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 deprecation, 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 deprecation, 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 deprecation, 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 deprecation, 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
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 deprecation, 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 deprecation, 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 deprecation, 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 deprecation, 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?

modified on Friday, July 25, 2008 1:42 PM

AnswerRe: How to compile this project Pin
Cedric Moonen25-Jul-08 7:44
Cedric Moonen25-Jul-08 7:44 
GeneralRe: How to compile this project Pin
staticv25-Jul-08 8:00
staticv25-Jul-08 8:00 
GeneralRe: How to compile this project Pin
Cedric Moonen25-Jul-08 8:06
Cedric Moonen25-Jul-08 8:06 
GeneralRe: How to compile this project Pin
staticv25-Jul-08 8:37
staticv25-Jul-08 8:37 
GeneralRe: How to compile this project Pin
Cedric Moonen25-Jul-08 22:03
Cedric Moonen25-Jul-08 22:03 
GeneralRe: How to compile this project Pin
staticv26-Jul-08 7:19
staticv26-Jul-08 7:19 
QuestionWM_CTLCOLOR..... mess VS WM_PAINT Pin
ForNow25-Jul-08 6:46
ForNow25-Jul-08 6:46 
AnswerRe: WM_CTLCOLOR..... mess VS WM_PAINT Pin
Mark Salsbery25-Jul-08 7:06
Mark Salsbery25-Jul-08 7:06 
GeneralRe: WM_CTLCOLOR..... mess VS WM_PAINT Pin
Paul Sanders (the other one)25-Jul-08 7:55
Paul Sanders (the other one)25-Jul-08 7:55 
GeneralRe: WM_CTLCOLOR..... mess VS WM_PAINT Pin
ForNow25-Jul-08 12:09
ForNow25-Jul-08 12:09 
GeneralRe: WM_CTLCOLOR..... mess VS WM_PAINT Pin
Mark Salsbery25-Jul-08 12:19
Mark Salsbery25-Jul-08 12:19 
GeneralRe: WM_CTLCOLOR..... mess VS WM_PAINT Pin
ForNow26-Jul-08 15:33
ForNow26-Jul-08 15:33 
QuestionMultiline tab control CTabCtrl ? Pin
bosfan25-Jul-08 6:11
bosfan25-Jul-08 6:11 
AnswerRe: Multiline tab control CTabCtrl ? Pin
Ștefan-Mihai MOGA25-Jul-08 18:52
professionalȘtefan-Mihai MOGA25-Jul-08 18:52 
QuestionTimers and timing Pin
john john mackey25-Jul-08 5:51
john john mackey25-Jul-08 5:51 
AnswerRe: Timers and timing Pin
Matthew Faithfull25-Jul-08 6:04
Matthew Faithfull25-Jul-08 6:04 
Questionfile details Pin
vineeshV25-Jul-08 1:13
vineeshV25-Jul-08 1:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.