Index: base/applications/win32++demo/CMakeLists.txt
===================================================================
--- base/applications/win32++demo/CMakeLists.txt (revision 0)
+++ base/applications/win32++demo/CMakeLists.txt (working copy)
@@ -0,0 +1,18 @@
+set_cpp(WITH_EXCEPTIONS WITH_RTTI WITH_STL)
+
+add_definitions(-DWIN32)
+
+include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/win32++)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+
+list(APPEND SOURCE
+ main.cpp
+ FrameApp.cpp
+ Mainfrm.cpp
+ View.cpp
+ Resource.rc)
+
+add_executable(win32++demo ${SOURCE})
+set_module_type(win32++demo win32gui UNICODE)
+add_importlibs(win32++demo advapi32 comctl32 comdlg32 user32 gdi32 winmm shell32 msvcrt kernel32)
+add_cd_file(TARGET win32++demo DESTINATION reactos/system32 FOR all)
Index: base/applications/win32++demo/FrameApp.cpp
===================================================================
--- base/applications/win32++demo/FrameApp.cpp (revision 0)
+++ base/applications/win32++demo/FrameApp.cpp (working copy)
@@ -0,0 +1,31 @@
+//////////////////////////////////////////////
+//FrameApp.cpp
+
+#include "stdafx.h"
+#include "FrameApp.h"
+
+
+// Definitions for the CFrameApp class
+CFrameApp::CFrameApp()
+{
+}
+
+CFrameApp::~CFrameApp()
+{
+}
+
+BOOL CFrameApp::InitInstance()
+{
+ //Create the Frame Window
+ if (!m_Frame.Create())
+ {
+ // We get here if the Frame creation fails
+
+ ::MessageBox(NULL, _T("Failed to create Frame window"), _T("ERROR"), MB_ICONERROR);
+ return FALSE; // returning FALSE ends the application
+ }
+
+ return TRUE;
+}
+
+
Index: base/applications/win32++demo/FrameApp.h
===================================================================
--- base/applications/win32++demo/FrameApp.h (revision 0)
+++ base/applications/win32++demo/FrameApp.h (working copy)
@@ -0,0 +1,29 @@
+//////////////////////////////////////////////////
+// FrameApp.h
+
+#ifndef FRAMEAPP_H
+#define FRAMEAPP_H
+
+#include "Mainfrm.h"
+
+
+// Declaration of the CFrameApp class
+class CFrameApp : public CWinApp
+{
+public:
+ CFrameApp();
+ virtual ~CFrameApp();
+ virtual BOOL InitInstance();
+ CMainFrame& GetMainFrame() { return m_Frame; }
+
+private:
+ CMainFrame m_Frame;
+};
+
+
+// a useful function that returns a reference to the CFrameApp object
+inline CFrameApp& GetFrameApp() { return *((CFrameApp*)GetApp()); }
+
+
+#endif // define FRAMEAPP_H
+
Index: base/applications/win32++demo/Mainfrm.cpp
===================================================================
--- base/applications/win32++demo/Mainfrm.cpp (revision 0)
+++ base/applications/win32++demo/Mainfrm.cpp (working copy)
@@ -0,0 +1,168 @@
+////////////////////////////////////////////////////
+// Mainfrm.cpp
+
+#include "stdafx.h"
+#include "resource.h"
+#include "mainfrm.h"
+
+
+// Definitions for the CMainFrame class
+CMainFrame::CMainFrame()
+{
+ // Constructor for CMainFrame. Its called after CFrame's constructor
+
+ //Set m_View as the view window of the frame
+ SetView(m_View);
+
+ // Set the registry key name, and load the initial window position
+ // Use a registry key name like "CompanyName\\Application"
+ LoadRegistrySettings(_T("Win32++\\Frame"));
+}
+
+CMainFrame::~CMainFrame()
+{
+ // Destructor for CMainFrame.
+}
+
+BOOL CMainFrame::OnCommand(WPARAM wParam, LPARAM lParam)
+{
+ // OnCommand responds to menu and and toolbar input
+
+ UNREFERENCED_PARAMETER(lParam);
+
+ switch(LOWORD(wParam))
+ {
+ case IDM_FILE_OPEN:
+ // Refer to the tutorial for an example of OnFileOpen
+ OnFileOpen();
+ return TRUE;
+ case IDM_FILE_SAVE:
+ // Refer to the tutorial for an example of OnFileSave
+ OnFileSave();
+ return TRUE;
+ case IDM_FILE_SAVEAS:
+ // Refer to the tutorial for an example of OnFileSaveAs
+ OnFileSave();
+ return TRUE;
+ case IDM_FILE_PRINT:
+ OnFilePrint();
+ return TRUE;
+ case IDM_FILE_EXIT:
+ // End the application
+ ::PostMessage(m_hWnd, WM_CLOSE, 0, 0);
+ return TRUE;
+ case IDW_VIEW_STATUSBAR:
+ OnViewStatusBar();
+ return TRUE;
+ case IDW_VIEW_TOOLBAR:
+ OnViewToolBar();
+ return TRUE;
+ case IDM_HELP_ABOUT:
+ // Display the help dialog
+ OnHelp();
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+void CMainFrame::OnCreate()
+{
+ // OnCreate controls the way the frame is created.
+ // Overriding CFrame::Oncreate is optional.
+ // The default for the following variables is TRUE
+
+ // m_bShowIndicatorStatus = FALSE; // Don't show statusbar indicators
+ // m_bShowMenuStatus = FALSE; // Don't show toolbar or menu status
+ // m_bUseReBar = FALSE; // Don't use rebars
+ m_bUseThemes = FALSE; // Don't use themes
+ // m_bUseToolBar = FALSE; // Don't use a toolbar
+
+ // call the base class function
+ CFrame::OnCreate();
+}
+
+void CMainFrame::OnInitialUpdate()
+{
+ // The frame is now created.
+ // Place any additional startup code here.
+
+ TRACE("Frame created\n");
+}
+
+void CMainFrame::OnFileOpen()
+{
+ // Bring up the dialog, and open the file
+ CFile File;
+ CString str = File.OpenFileDialog(0, 0, 0, 0);
+
+ // TODO:
+ // Add your own code here. Refer to the tutorial for additional information
+}
+
+void CMainFrame::OnFileSave()
+{
+ CFile File;
+ CString str = File.SaveFileDialog(0, 0, 0, 0, 0);
+
+ // TODO:
+ // Add your own code here. Refer to the tutorial for additional information
+}
+
+void CMainFrame::OnFilePrint()
+{
+ // Bring up a dialog to choose the printer
+ PRINTDLG pd = {0};
+ pd.lStructSize = sizeof( pd );
+ pd.Flags = PD_RETURNDC;
+ pd.hwndOwner = m_hWnd;
+
+ // Retrieve the printer DC
+ PrintDlg( &pd );
+
+ // TODO:
+ // Add your own code here. Refer to the tutorial for additional information
+}
+
+LRESULT CMainFrame::OnNotify(WPARAM wParam, LPARAM lParam)
+{
+ // Process notification messages sent by child windows
+// switch(((LPNMHDR)lParam)->code)
+// {
+ //Add case statments for each notification message here
+// }
+
+ // Some notifications should return a value when handled
+ return CFrame::OnNotify(wParam, lParam);
+}
+
+void CMainFrame::SetupToolBar()
+{
+ // Set the Resource IDs for the toolbar buttons
+ AddToolBarButton( IDM_FILE_NEW );
+ AddToolBarButton( IDM_FILE_OPEN );
+ AddToolBarButton( IDM_FILE_SAVE );
+
+ AddToolBarButton( 0 ); // Separator
+ AddToolBarButton( IDM_EDIT_CUT, FALSE ); // disabled button
+ AddToolBarButton( IDM_EDIT_COPY, FALSE ); // disabled button
+ AddToolBarButton( IDM_EDIT_PASTE, FALSE ); // disabled button
+
+ AddToolBarButton( 0 ); // Separator
+ AddToolBarButton( IDM_FILE_PRINT );
+
+ AddToolBarButton( 0 ); // Separator
+ AddToolBarButton( IDM_HELP_ABOUT );
+}
+
+LRESULT CMainFrame::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
+{
+// switch (uMsg)
+// {
+// Add case statements for each messages to be handled here
+// }
+
+ // pass unhandled messages on for default processing
+ return WndProcDefault(uMsg, wParam, lParam);
+}
+
Index: base/applications/win32++demo/Mainfrm.h
===================================================================
--- base/applications/win32++demo/Mainfrm.h (revision 0)
+++ base/applications/win32++demo/Mainfrm.h (working copy)
@@ -0,0 +1,32 @@
+/////////////////////////////////////////////
+// Mainfrm.h
+
+#ifndef MAINFRM_H
+#define MAINFRM_H
+
+#include "View.h"
+
+// Declaration of the CMainFrame class
+class CMainFrame : public CFrame
+{
+public:
+ CMainFrame(void);
+ virtual ~CMainFrame();
+
+protected:
+ virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
+ virtual void OnCreate();
+ virtual void OnFileOpen();
+ virtual void OnFilePrint();
+ virtual void OnFileSave();
+ virtual void OnInitialUpdate();
+ virtual LRESULT OnNotify(WPARAM wParam, LPARAM lParam);
+ virtual void SetupToolBar();
+ virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+private:
+ CView m_View;
+};
+
+#endif //MAINFRM_H
+
Index: base/applications/win32++demo/Resource.rc
===================================================================
--- base/applications/win32++demo/Resource.rc (revision 0)
+++ base/applications/win32++demo/Resource.rc (working copy)
@@ -0,0 +1,199 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#define APSTUDIO_HIDDEN_SYMBOLS
+#include "windows.h"
+#undef APSTUDIO_HIDDEN_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// RT_MANIFEST
+//
+
+1 RT_MANIFEST "res/Win32++.manifest"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Menu
+//
+
+IDW_MAIN MENU
+BEGIN
+ POPUP "&File"
+ BEGIN
+ MENUITEM "New...", IDM_FILE_NEW
+ MENUITEM "&Open...", IDM_FILE_OPEN
+ MENUITEM "&Save", IDM_FILE_SAVE
+ MENUITEM "Save &As...", IDM_FILE_SAVEAS
+ MENUITEM SEPARATOR
+ MENUITEM "&Print", IDM_FILE_PRINT
+ MENUITEM SEPARATOR
+ MENUITEM "E&xit", IDM_FILE_EXIT
+ END
+ POPUP "&Edit"
+ BEGIN
+ MENUITEM "Undo\tCtrl+Z", IDM_EDIT_UNDO, GRAYED
+ MENUITEM "Redo\tShift+Ctrl+Z", IDM_EDIT_REDO, GRAYED
+ MENUITEM SEPARATOR
+ MENUITEM "Cut\tCtrl+X", IDM_EDIT_CUT, GRAYED
+ MENUITEM "Copy\tCtrl+C", IDM_EDIT_COPY, GRAYED
+ MENUITEM "Paste\tCtrl+V", IDM_EDIT_PASTE, GRAYED
+ MENUITEM "Delete\tDel", IDM_EDIT_DELETE, GRAYED
+ END
+ POPUP "&View"
+ BEGIN
+ MENUITEM "&Tool Bar", IDW_VIEW_TOOLBAR, CHECKED
+ MENUITEM "&Status Bar", IDW_VIEW_STATUSBAR, CHECKED
+ END
+ POPUP "&Help"
+ BEGIN
+ MENUITEM "&About", IDM_HELP_ABOUT
+ END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDW_MAIN ICON "res/Star.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Bitmap
+//
+
+IDW_MAIN BITMAP "res/toolbar.bmp"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDW_ABOUT DIALOGEX 0, 0, 186, 90
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+CAPTION "About"
+FONT 8, "MS Shell Dlg", 400, 0
+BEGIN
+ DEFPUSHBUTTON "OK",IDOK,68,49,50,14
+ CTEXT "Frame Application",IDC_STATIC,60,22,64,11
+ ICON IDW_MAIN,0,4,4,20,20
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Accelerator
+//
+
+IDW_MAIN ACCELERATORS
+BEGIN
+ "N", IDM_FILE_NEW, VIRTKEY, CONTROL, NOINVERT
+ "O", IDM_FILE_OPEN, VIRTKEY, CONTROL, NOINVERT
+ "P", IDM_FILE_PRINT, VIRTKEY, CONTROL, NOINVERT
+ "S", IDM_FILE_SAVE, VIRTKEY, CONTROL, NOINVERT
+ "C", IDM_EDIT_COPY, VIRTKEY, CONTROL, NOINVERT
+ "X", IDM_EDIT_CUT, VIRTKEY, CONTROL, NOINVERT
+ "V", IDM_EDIT_PASTE, VIRTKEY, CONTROL, NOINVERT
+ "Z", IDM_EDIT_UNDO, VIRTKEY, CONTROL, NOINVERT
+ "Y", IDM_EDIT_REDO, VIRTKEY, SHIFT, CONTROL, NOINVERT
+ VK_DELETE, IDM_EDIT_DELETE, VIRTKEY, NOINVERT
+END
+
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "#include ""windows.h""\r\n"
+ "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE
+BEGIN
+ IDW_MAIN "Frame Window"
+ IDW_VIEW_TOOLBAR "Show or hide the tool bar"
+ IDW_VIEW_STATUSBAR "Show or hide the status bar"
+END
+
+STRINGTABLE
+BEGIN
+ IDM_FILE_NEW "Create a New Document"
+ IDM_FILE_OPEN "Open Existing Document"
+ IDM_FILE_SAVE "Save the Document"
+ IDM_FILE_SAVEAS "Save the Document with a new name"
+ IDM_FILE_PRINT "Print the Document"
+ IDM_FILE_EXIT "End the Program"
+ IDM_EDIT_UNDO "Undo the last action"
+ IDM_EDIT_REDO "Redo the previously undone action"
+END
+
+STRINGTABLE
+BEGIN
+ IDM_EDIT_CUT "Cut the Selected Contents to the Clipboard"
+ IDM_EDIT_COPY "Copy the Selected Contents to the Clipboard"
+ IDM_EDIT_PASTE "Paste the Clipboard Contents to the Document"
+ IDM_EDIT_DELETE "Erase the selected Contents"
+ IDM_HELP_ABOUT "Display Information about this program"
+END
+
+STRINGTABLE
+BEGIN
+ SC_CLOSE "Close the Window"
+ SC_MAXIMIZE "Maximize the Window"
+ SC_MINIMIZE "Minimize the WIndow"
+ SC_MOVE "Move the Window"
+ SC_NEXTWINDOW "Select Next Window"
+ SC_PREVWINDOW "Select Previous Window"
+ SC_RESTORE "Restore the Window"
+ SC_SIZE "Resize the Window"
+END
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
Index: base/applications/win32++demo/StdAfx.cpp
===================================================================
--- base/applications/win32++demo/StdAfx.cpp (revision 0)
+++ base/applications/win32++demo/StdAfx.cpp (working copy)
@@ -0,0 +1,15 @@
+//////////////////////////////////////////////
+// StdAfx.cpp
+
+// This file is used for precompiled hearders. Precompiled headers allow
+// programs to be recompiled more quickly
+
+// To use precompiled headers, do the following:
+// 1) Add the set of rarely changed headers to stdafx.h
+// 2) Include stdafx.h in each cpp file. It must be included first.
+// 3) Add stdafx.cpp to your project.
+// 4) Turn on precompiled hearders in the project
+
+
+#include "stdafx.h"
+
Index: base/applications/win32++demo/View.cpp
===================================================================
--- base/applications/win32++demo/View.cpp (revision 0)
+++ base/applications/win32++demo/View.cpp (working copy)
@@ -0,0 +1,70 @@
+//////////////////////////////////////////////
+// View.cpp
+// Definitions for the CView class
+
+#include "stdafx.h"
+#include "view.h"
+
+
+CView::CView()
+{
+}
+
+void CView::OnDraw(CDC* pDC)
+{
+ CRect rc = GetClientRect();
+
+ // Centre some text in our view window
+ pDC->DrawText(_T("View Window"), -1, rc, DT_CENTER | DT_VCENTER | DT_SINGLELINE);
+}
+
+void CView::OnInitialUpdate()
+{
+ // OnInitialUpdate is called immediately after the window is created
+ TRACE("View window created\n");
+}
+
+void CView::PreCreate(CREATESTRUCT &cs)
+{
+ // Here we set the defaults used by the create function for the view window
+ // Preforming this is optional, but doing so allows us to
+ // take more precise control over the window we create.
+
+ // Set the extended style
+ cs.dwExStyle = WS_EX_CLIENTEDGE;
+}
+
+void CView::PreRegisterClass(WNDCLASS &wc)
+{
+ // Here we set the Window class parameters.
+ // Preforming this is optional, but doing so allows us to
+ // take more precise control over the type of window we create.
+
+ // Set the Window Class name
+ wc.lpszClassName = _T("View");
+
+ // Set a background brush to white
+ wc.hbrBackground = (HBRUSH)::GetStockObject(WHITE_BRUSH);
+
+ // Set the default cursor
+ wc.hCursor = ::LoadCursor(NULL, IDC_ARROW);
+
+ // Set the class style (not to be confused with the window styles set in PreCreate)
+ wc.style = CS_DBLCLKS; // Generate left button double click messages
+}
+
+LRESULT CView::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
+{
+ switch (uMsg)
+ {
+ case WM_SIZE:
+ Invalidate();
+ break; // Also do default processing
+ }
+
+ // pass unhandled messages on for default processing
+ return WndProcDefault(uMsg, wParam, lParam);
+}
+
+
+
Index: base/applications/win32++demo/View.h
===================================================================
--- base/applications/win32++demo/View.h (revision 0)
+++ base/applications/win32++demo/View.h (working copy)
@@ -0,0 +1,25 @@
+//////////////////////////////////////////////////////
+// View.h
+
+#ifndef VIEW_H
+#define VIEW_H
+
+
+
+// Declaration of the CView class
+class CView : public CWnd
+{
+public:
+ CView();
+ virtual ~CView(){}
+
+protected:
+ virtual void OnDraw(CDC* pDC);
+ virtual void OnInitialUpdate();
+ virtual void PreCreate(CREATESTRUCT &cs);
+ virtual void PreRegisterClass(WNDCLASS &wc);
+ virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
+};
+
+
+#endif // VIEW_H
Index: base/applications/win32++demo/main.cpp
===================================================================
--- base/applications/win32++demo/main.cpp (revision 0)
+++ base/applications/win32++demo/main.cpp (working copy)
@@ -0,0 +1,31 @@
+///////////////////////////////////////
+// main.cpp
+
+#include "stdafx.h"
+#include "FrameApp.h"
+
+
+INT WINAPI
+_tWinMain(IN HINSTANCE hInstance,
+ IN HINSTANCE hPrevInstance,
+ IN LPTSTR lpCmdLine,
+ IN INT nCmdShow)
+{
+ try
+ {
+ // Start Win32++
+ CFrameApp theApp;
+
+ // Run the application
+ return theApp.Run();
+ }
+
+ // catch all exceptions inherited from std::exception
+ catch (std::exception &e)
+ {
+ // Process the exception and quit
+ e.what();
+ return -1;
+ }
+}
+
Index: base/applications/win32++demo/res/Star.ico
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: base/applications/win32++demo/res/Star.ico
===================================================================
--- base/applications/win32++demo/res/Star.ico (revision 0)
+++ base/applications/win32++demo/res/Star.ico (working copy)
Property changes on: base/applications/win32++demo/res/Star.ico
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: base/applications/win32++demo/res/Toolbar.bmp
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: base/applications/win32++demo/res/Toolbar.bmp
===================================================================
--- base/applications/win32++demo/res/Toolbar.bmp (revision 0)
+++ base/applications/win32++demo/res/Toolbar.bmp (working copy)
Property changes on: base/applications/win32++demo/res/Toolbar.bmp
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: base/applications/win32++demo/res/Win32++.manifest
===================================================================
--- base/applications/win32++demo/res/Win32++.manifest (revision 0)
+++ base/applications/win32++demo/res/Win32++.manifest (working copy)
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+Adds XP Theme style to any program
+
+
+
+
+
+
+
Index: base/applications/win32++demo/resource.h
===================================================================
--- base/applications/win32++demo/resource.h (revision 0)
+++ base/applications/win32++demo/resource.h (working copy)
@@ -0,0 +1,34 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by Resource.rc
+//
+
+// include the Resource IDs defined by Win32++
+#include "default_resource.h"
+
+#define IDM_FILE_NEW 101
+#define IDM_FILE_OPEN 102
+#define IDM_FILE_SAVE 103
+#define IDM_FILE_SAVEAS 104
+#define IDM_FILE_PRINT 105
+#define IDM_FILE_CLOSE 106
+#define IDM_FILE_EXIT 107
+#define IDM_EDIT_UNDO 110
+#define IDM_EDIT_REDO 111
+#define IDM_EDIT_CUT 112
+#define IDM_EDIT_COPY 113
+#define IDM_EDIT_PASTE 114
+#define IDM_EDIT_DELETE 115
+#define IDM_HELP_ABOUT 120
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NO_MFC 1
+#define _APS_NEXT_RESOURCE_VALUE 129
+#define _APS_NEXT_COMMAND_VALUE 32771
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 130
+#endif
+#endif
Index: base/applications/win32++demo/stdafx.h
===================================================================
--- base/applications/win32++demo/stdafx.h (revision 0)
+++ base/applications/win32++demo/stdafx.h (working copy)
@@ -0,0 +1,58 @@
+//////////////////////////////////////////////
+// StdAfx.h
+
+// This file is used for precompiled headers
+// Rarely modified header files should be included.
+
+// Based on code provided by Lynn Allan
+
+
+#ifndef STDAFX_H
+#define STDAFX_H
+
+
+// Predefinitions for windows.h go here
+//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+#include "targetver.h" // Set the supported window features
+
+// Specify Win32xx specific predefinitions here
+//#define NO_USING_NAMESPACE // Don't use Win32xx namespace
+
+typedef unsigned char byte;
+
+#if defined(_MSC_VER) && _MSC_VER == 1200 // For Visual Studio 6
+ #pragma warning (disable : 4786) // identifier was truncated
+ #pragma warning (disable : 4702) // unreachable code (bugs in Microsoft's STL)
+#endif
+
+// Rarely modified header files should be included here
+#include
+#include