Merge pull request #591 from cxd4/VS_Express

got it compiling on Express
This commit is contained in:
zilmar 2015-09-13 12:32:34 +10:00
commit d603d7d7dd
23 changed files with 82 additions and 3 deletions

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Debugger UI.h"
CDumpMemory::CDumpMemory(CDebugger * debugger) :
@ -593,3 +595,4 @@ bool CDumpMemory::DumpMemory ( LPCSTR FileName,DumpFormat Format, DWORD StartPC,
// }
// return false;
//}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Debugger UI.h"
CDebugMemorySearch::CDebugMemorySearch(CDebugger * debugger) :
@ -787,3 +789,4 @@ bool CDebugMemorySearch::SearchForValue (DWORD Value, MemorySize Size, DWORD &St
}
return false;
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Debugger UI.h"
CDebugTlb::CDebugTlb(CDebugger * debugger) :
@ -285,3 +287,4 @@ void CDebugTlb::RefreshTLBWindow (void)
}
}
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Debugger UI.h"
CDebugMemoryView::CDebugMemoryView(CDebugger * debugger) :
@ -470,3 +472,4 @@ void CDebugMemoryView::RefreshMemory ( bool ResetCompare )
Insert_MemoryLineDump ( count );
}
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Debugger UI.h"
CPj64Module _Module;
@ -130,3 +132,4 @@ void CDebugger::Debug_ShowMemorySearch()
m_MemorySearch->ShowWindow();
}
}
#endif

View File

@ -44,8 +44,14 @@ struct WINDOWS_PAINTSTRUCT {
class CN64System;
#define WINDOWS_UI
// Remove this to test compilation outside of the Windows ATL environment.
#ifdef WINDOWS_UI
#include <WTL App.h>
#endif
#include <User Interface/MenuShortCuts.h>
#include ".\\User Interface\\Rom Browser.h"
#include ".\\User Interface\\Gui Class.h"
#include ".\\User Interface\\Menu Class.h"
@ -53,4 +59,6 @@ class CN64System;
#include ".\\User Interface\\Notification Class.h"
#include ".\\User Interface\\Frame Per Second Class.h"
#include ".\\User Interface\\resource.h"
#ifdef WINDOWS_UI
#include ".\\User Interface\\Settings Config.h"
#endif

View File

@ -10,6 +10,7 @@
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include <commctrl.h>
#include "Settings/SettingType/SettingsType-Application.h"
@ -1253,3 +1254,4 @@ BOOL set_about_field(
temp_string
);
}
#endif

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#ifdef WINDOWS_UI
#include <windows.h>
#include <commdlg.h>
@ -1240,3 +1241,4 @@ void CMainMenu::ResetMenu(void)
WriteTrace(TraceDebug,__FUNCTION__ ": Done");
}
#endif

View File

@ -1,4 +1,6 @@
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Config.h"
#include "Settings/Settings Page.h"
#include "Settings/SettingType/SettingsType-Application.h"
@ -339,4 +341,4 @@ void CSettingConfig::BoldChangedPages ( HTREEITEM hItem )
::EnableWindow(GetDlgItem(IDC_RESET_ALL), true);
}
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
CAdvancedOptionsPage::CAdvancedOptionsPage (HWND hParent, const RECT & rcDispay )
@ -70,3 +72,4 @@ void CAdvancedOptionsPage::ResetPage()
{
CSettingsPageImpl<CAdvancedOptionsPage>::ResetPage();
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
COptionsDirectoriesPage::COptionsDirectoriesPage (HWND hParent, const RECT & rcDispay ) :
@ -351,3 +353,4 @@ void COptionsDirectoriesPage::ResetPage()
SendMessage(GetParent(),PSM_CHANGED,(WPARAM)m_hWnd,0);
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
#include "Settings Page - Game - General.h"
@ -113,3 +115,4 @@ void CGameGeneralPage::ResetPage()
{
CSettingsPageImpl<CGameGeneralPage>::ResetPage();
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
#include "Settings Page - Game - Plugin.h"
@ -345,3 +347,4 @@ void CGamePluginPage::HleAudioChanged ( UINT /*Code*/, int id, HWND /*ctl*/ )
break;
}
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
#include "Settings Page - Game - Recompiler.h"
@ -94,3 +96,4 @@ void CGameRecompilePage::ResetPage()
{
CSettingsPageImpl<CGameRecompilePage>::ResetPage();
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
#include "Settings Page - Game - Status.h"
@ -70,3 +72,4 @@ void CGameStatusPage::ResetPage()
{
CSettingsPageImpl<CGameStatusPage>::ResetPage();
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
COptionsGameBrowserPage::COptionsGameBrowserPage (HWND hParent, const RECT & rcDispay ) :
@ -253,3 +255,4 @@ void COptionsGameBrowserPage::ResetPage()
}
CSettingsPageImpl<COptionsGameBrowserPage>::ResetPage();
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
COptionsShortCutsPage::COptionsShortCutsPage (HWND hParent, const RECT & rcDispay ) :
@ -378,3 +380,4 @@ void COptionsShortCutsPage::ResetPage()
m_CurrentKeys.ResetContent();
CSettingsPageImpl<COptionsShortCutsPage>::ResetPage();
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
CGeneralOptionsPage::CGeneralOptionsPage(CSettingConfig * SettingsConfig, HWND hParent, const RECT & rcDispay ) :
@ -75,3 +77,4 @@ void CGeneralOptionsPage::OnBasicMode ( UINT Code, int id, HWND ctl )
CheckBoxChanged(Code,id,ctl);
m_SettingsConfig->UpdateAdvanced((int)::SendMessage(ctl, BM_GETCHECK, 0, 0) == 0);
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
COptionPluginPage::COptionPluginPage (HWND hParent, const RECT & rcDispay )
@ -331,3 +333,4 @@ void COptionPluginPage::HleAudioChanged ( UINT /*Code*/, int id, HWND /*ctl*/ )
break;
}
}
#endif

View File

@ -9,6 +9,8 @@
* *
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "Settings Page.h"
CConfigSettingSection::CConfigSettingSection( LPCWSTR PageTitle ) :
@ -39,3 +41,4 @@ CSettingsPage * CConfigSettingSection::GetPage ( int PageNo )
}
return m_Pages[PageNo];
}
#endif

View File

@ -10,6 +10,7 @@
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
CModifiedEditBox::CModifiedEditBox(bool bString /* = true */, HWND hWnd /* = NULL */) :
CEdit(hWnd),
m_Changed(false),
@ -103,3 +104,4 @@ void CModifiedEditBox::SetTextField (HWND hWnd)
::SendMessage(m_TextField,WM_SETFONT,(WPARAM)m_BoldFont,0);
}
}
#endif

View File

@ -10,6 +10,7 @@
****************************************************************************/
#include "stdafx.h"
#ifdef WINDOWS_UI
BOOL CPartialGroupBox::Attach(HWND hWnd)
{
ATLASSUME(m_hWnd == NULL);
@ -118,5 +119,5 @@ void CPartialGroupBox::OnPaint(HDC /*hDC*/)
dc.DrawTextW(grptext,-1,fontrect,DT_SINGLELINE|DT_LEFT);
}
}
#endif

View File

@ -178,6 +178,19 @@ const char * AppName ( void )
return Name.c_str();
}
#ifndef WINDOWS_UI
int main(int argc, char* argv[])
{
#error Cross-platform [graphical?] interface has not yet been implemented.
// Remove this #error to compile, but linking will fail with about 10 errors.
while (argc >= 0)
{
puts(argv[--argc]);
}
return 0;
}
#else
int WINAPI WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /*lpszArgs*/, int /*nWinMode*/)
{
FixDirectories();
@ -280,3 +293,4 @@ int WINAPI WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /
CloseTrace();
return true;
}
#endif