00001 00007 /* 00008 Copyright (C) 2007, 著者 00009 00010 This software is provided 'as-is', without any express or implied 00011 warranty. In no event will the authors be held liable for any damages 00012 arising from the use of this software. 00013 00014 Permission is granted to anyone to use this software for any purpose, 00015 including commercial applications, and to alter it and redistribute it 00016 freely, subject to the following restrictions: 00017 00018 1. The origin of this software must not be misrepresented; 00019 you must not claim that you wrote the original software. 00020 If you use this software in a product, an acknowledgment 00021 in the product documentation would be appreciated but is 00022 not required. 00023 00024 2. Altered source versions must be plainly marked as such, 00025 and must not be misrepresented as being the original software. 00026 00027 3. This notice may not be removed or altered from any source 00028 distribution. 00029 */ 00030 #pragma once 00031 00032 #include <windows.h> 00033 00039 typedef enum sample_enum_e { 00040 SAMPLE_ENUM_FIRST = 0, 00041 SAMPLE_ENUM_LAST 00042 } eSampleEnum; 00043 00049 typedef struct sample_struct_t { 00050 int m_nInt; 00051 char* m_lpStr; 00052 } tSampleStruct; 00053 00059 class CSample { 00060 //コンストラクション 00061 public: 00062 CSample(); //コンストラクタ宣言 00063 CSample( DWORD p1 ); 00064 virtual ~CSample(); //デストラクタ宣言 00065 00066 //アトリビュート 00067 private: 00068 int m_nSample; 00069 00070 //メソッド 00071 public: 00072 bool SampleFunc( int p1, char* p2 ); //サンプル関数宣言 00073 };
1.5.4