asf2mkv.cpp

00001 /* 
00002  *      Copyright (C) 2003-2005 Gabest
00003  *      http://www.gabest.org
00004  *
00005  *  This Program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2, or (at your option)
00008  *  any later version.
00009  *   
00010  *  This Program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013  *  GNU General Public License for more details.
00014  *   
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with GNU Make; see the file COPYING.  If not, write to
00017  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
00018  *  http://www.gnu.org/copyleft/gpl.html
00019  *
00020  */
00021 
00022 // asf2mkv.cpp : Defines the class behaviors for the application.
00023 //
00024 
00025 #include "stdafx.h"
00026 #include "asf2mkv.h"
00027 #include "asf2mkvDlg.h"
00028 #include ".\asf2mkv.h"
00029 
00030 #ifdef _DEBUG
00031 #define new DEBUG_NEW
00032 #endif
00033 
00034 // Casf2mkvApp
00035 
00036 BEGIN_MESSAGE_MAP(Casf2mkvApp, CWinApp)
00037         ON_COMMAND(ID_HELP, CWinApp::OnHelp)
00038 END_MESSAGE_MAP()
00039 
00040 
00041 // Casf2mkvApp construction
00042 
00043 Casf2mkvApp::Casf2mkvApp()
00044 {
00045         // TODO: add construction code here,
00046         // Place all significant initialization in InitInstance
00047 }
00048 
00049 
00050 // The one and only Casf2mkvApp object
00051 
00052 Casf2mkvApp theApp;
00053 
00054 
00055 // Casf2mkvApp initialization
00056 
00057 BOOL Casf2mkvApp::InitInstance()
00058 {
00059         // InitCommonControls() is required on Windows XP if an application
00060         // manifest specifies use of ComCtl32.dll version 6 or later to enable
00061         // visual styles.  Otherwise, any window creation will fail.
00062         InitCommonControls();
00063 
00064         CWinApp::InitInstance();
00065 
00066         // Standard initialization
00067         // If you are not using these features and wish to reduce the size
00068         // of your final executable, you should remove from the following
00069         // the specific initialization routines you do not need
00070         // Change the registry key under which our settings are stored
00071         // TODO: You should modify this string to be something appropriate
00072         // such as the name of your company or organization
00073         SetRegistryKey(_T("Gabest"));
00074 
00075         HRESULT hr;
00076     if(FAILED(hr = OleInitialize(0)))
00077         {
00078         AfxMessageBox(_T("OleInitialize failed!"));
00079                 return FALSE;
00080         }
00081 
00082         Casf2mkvDlg dlg;
00083         m_pMainWnd = &dlg;
00084         INT_PTR nResponse = dlg.DoModal();
00085         if (nResponse == IDOK)
00086         {
00087                 // TODO: Place code here to handle when the dialog is
00088                 //  dismissed with OK
00089         }
00090         else if (nResponse == IDCANCEL)
00091         {
00092                 // TODO: Place code here to handle when the dialog is
00093                 //  dismissed with Cancel
00094         }
00095 
00096         // Since the dialog has been closed, return FALSE so that we exit the
00097         //  application, rather than start the application's message pump.
00098         return FALSE;
00099 }
00100 
00101 int Casf2mkvApp::ExitInstance()
00102 {
00103     OleUninitialize();
00104 
00105         return CWinApp::ExitInstance();
00106 }

Generated on Tue Dec 13 14:46:41 2005 for guliverkli by  doxygen 1.4.5