OSDN Git Service

基本ファイルを追加
[winaudioj/sfwasapi.git] / sfwasapi / winmain.cpp
1 #include "stdafx.h"
2 #include "sf_windows.h"
3 #include "message_loop.h"
4 #include "sf_com.h"
5
6 void  MIDIメッセージ到着時(const boost::uint32_t wMsg,const boost::uint32_t midi_message,const boost::uint32_t time_stamp);
7
8 /** WinMain */
9 int APIENTRY _tWinMain(HINSTANCE hInstance,
10                      HINSTANCE hPrevInstance,
11                      LPTSTR    lpCmdLine,
12                      int       nCmdShow)
13 {
14         UNREFERENCED_PARAMETER(hPrevInstance);
15         UNREFERENCED_PARAMETER(lpCmdLine);
16
17   std::wcout.imbue(std::locale(""));
18
19   // COMの初期化
20   sf::com_initialize init();
21
22   // ウィンドウの作成
23   sf::toplevel_window_ptr 
24     window(
25       sf::create_toplevel_window(
26         std::wstring(L"Test Window"),std::wstring(L"Test Window")));
27   
28   // メッセージループの実行
29   
30   WPARAM ret = sf::run_message_loop()();
31
32   return ret;
33 }