Update of /cvsroot/babylonlib/_SrcPool/Cpp/Samples/StlTools/Src
In directory sc8-pr-cvs1:/tmp/cvs-serv25379/Cpp/Samples/StlTools/Src
Added Files:
StlMain.cpp stdafx.h stdafx.cpp
Log Message:
Created
--- NEW FILE: StlMain.cpp ---
/*$Workfile: S:\_SrcPool\Cpp\Samples\_LibraryTest\Src\_TestMain.cpp$: implementation file
$Revision: 1.1 $ $Date: 2003/01/31 03:16:58 $
$Author: ddarko $
Defines the entry point for the console application used to test libray
functionality.
Jan. 90 Darko Kolakovic
*/
// Group=Examples
#ifdef _MSC_VER /*Microsoft Visual Studio C/C++ compiler */
#ifndef _CONSOLE
#error "define _CONSOLE macro in the project"
#endif
#endif
#ifdef __GNUG__ /*GNU C++ compiler */
#ifndef _CONSOLE
#warning "define _CONSOLE macro in the project"
#endif
#endif
#include "stdafx.h"
#include "KTrace.h" //TRACE macro
#include "KTypedef.h" //BOOL typedef
extern bool TestLeapYear();
//main()-----------------------------------------------------------------------
/*Validates different date and time routines.
Returns: EXIT_SUCCESS, which represents a value of 0, if successful. Otherwise
a non-zero error code is returned.
*/
int _tmain(int argc,
TCHAR* argv[]
)
{
cout << _T("Start Date and Time String") << endl << endl;
if(TestLeapYear())
cout << "Succeeded." << endl << endl;
else
{
cout << "Failed!" << endl;
return EXIT_FAILURE + 1;
}
return EXIT_SUCCESS;
}
--- NEW FILE: stdafx.h ---
/*$Workfile: S:\_SrcPool\Cpp\Samples\_LibraryTest\Src\stdafx.h$ : include file for standard system include files,
or project specific include files that are used frequently, but
are changed infrequently
$Revision: 1.1 $ $Date: 2003/01/31 03:16:58 $
$Author: ddarko $
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named _LibraryTest.pch and a precompiled types file named StdAfx.obj.
Files are generated by Microsoft Visual Studio
*/
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#ifdef __cplusplus
#include <string> //std::string
#include <iostream> //std::cout
#include <iomanip.h> //std::endl
#include "KTypedef.h" //Type definitions
#include "KTChar.h" //Unicode mapping layer
#include "KTrace.h" //debugging tools
#include "KString.h" //CString
#endif //__cplusplus
// TODO: reference additional headers your program requires here
--- NEW FILE: stdafx.cpp ---
/*$Workfile: S:\_SrcPool\Cpp\Samples\_LibraryTest\Src\stdafx.cpp$ : source file that includes just the standard includes
_LibraryTest.pch will be the pre-compiled header
stdafx.obj will contain the pre-compiled type information
$Revision: 1.1 $ $Date: 2003/01/31 03:16:58 $
$Author: ddarko $
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named _LibraryTest.pch and a precompiled types file named StdAfx.obj.
Files are generated by Microsoft Visual Studio
*/
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
|