WinMain.cpp
[関数 | マクロ]
1|//@STATE=作成中
2|//@DESCRIPTION ---------------------------------------------------------------
3|// Windowメイン
4|// これだけははずせない...。
5|// 履歴:
6|// $Log: WinMain.cpp,v $
7|// Revision 1.5 2001/07/01 21:30:34 fujiwara
8|// メモリリークチェック見直し
9|//
10|// Revision 1.4 2001/07/01 01:03:45 fujiwara
11|// const の見直し
12|// 配置エディタは途中経過
13|//
14|// Revision 1.3 2001/05/13 20:04:24 fujiwara
15|// メモリーリークが発生したので取り除く。
16|// 自弾のサウンドテスト
17|//
18|// Revision 1.2 2001/05/12 00:48:35 fujiwara
19|// CVSを導入し、ログ表示を追加
20|//
21|// 2001/01/29 メモリーリーク検出用ライブラリの追加
22|//@DESCRIPTION_END -----------------------------------------------------------
23|//@AUTHOR=S.F.
24|// Copyright (C) 2000 Satoshi Fujiwara. All Rights Reserved.
25|///////////////////////////////////////////////////////////////////////////////
26|#pragma warning( disable : 4786 ) //STLの警告外し
27|#define WINMAIN
28|#define WIN32_LEAN_AND_MEAN
29|#include "sfdebug.h"
30|
31|
32|// SYSTEM INCLUDES
33|//
34|#include "math.h"
35|#include <stack>
36|#include <queue>
37|#include <map>
38|#include <string>
39|
40|#include "windows.h"
41|#include "windowsx.h"
42|
43|#include "d3d8.h"
44|#include "d3dx8.h"
45|#include "dmusici.h"
46|#include "dinput.h"
47|#include "mmsystem.h"
48|
49|// PROJECT INCLUDES
50|//
51|#ifdef _DEBUG
52|#define new DEBUG_NEW
53|#endif
54|
55|#include "exception.h"
56|#include "singleton.h"
57|#include "System.h"
58|#include "console.h"
59|#include "obj.h"
60|#include "input.h"
61|#include "sound.h"
62|#include "AbstractSprite.h"
63|#include "ConsoleImpl.h"
64|#include "SoundImpl.h"
65|#include "InputImpl.h"
66|#include "MainApp.h"
67|#include "SystemImpl.h"
68|
69|
70|//#include "Sound.h"
71|
72|LRESULT CALLBACK WndFunc(HWND hwnd, UINT message, WPARAM wParam,LPARAM lParam);
73|
74|
75|// WinMain --------------------------------------------------------------------
76|
77|int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
78| LPSTR lpszCmdParam, int nCmdShow)
79|{
80|#ifdef _DEBUG
81|#ifndef _BORLAND
82| _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
83|#endif
84|#endif
85|
86| sf::system::SystemImpl * const pwin32 = sf::system::SystemImpl::instance();
87| return pwin32->winMain (hThisInstance,hPrevInstance,lpszCmdParam,nCmdShow);
88|
89|};// WinMain
90|
91|