diff --git a/COM350/Project1/Project1.sln b/COM350/Project1/Project1.sln new file mode 100644 index 0000000..3b2c073 --- /dev/null +++ b/COM350/Project1/Project1.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Project1", "Project1\Project1.vbproj", "{9702F843-0130-4599-AB39-26EA8C4DD19B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9702F843-0130-4599-AB39-26EA8C4DD19B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9702F843-0130-4599-AB39-26EA8C4DD19B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9702F843-0130-4599-AB39-26EA8C4DD19B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9702F843-0130-4599-AB39-26EA8C4DD19B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/COM350/Project1/Project1/App.config b/COM350/Project1/Project1/App.config new file mode 100644 index 0000000..bc3672d --- /dev/null +++ b/COM350/Project1/Project1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/COM350/Project1/Project1/My Project/Application.Designer.vb b/COM350/Project1/Project1/My Project/Application.Designer.vb new file mode 100644 index 0000000..c1375f8 --- /dev/null +++ b/COM350/Project1/Project1/My Project/Application.Designer.vb @@ -0,0 +1,38 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + 'NOTE: This file is auto-generated; do not modify it directly. To make changes, + ' or if you encounter build errors in this file, go to the Project Designer + ' (go to Project Properties or double-click the My Project node in + ' Solution Explorer), and make changes on the Application tab. + ' + Partial Friend Class MyApplication + + _ + Public Sub New() + MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) + Me.IsSingleInstance = false + Me.EnableVisualStyles = true + Me.SaveMySettingsOnExit = true + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + End Sub + + _ + Protected Overrides Sub OnCreateMainForm() + Me.MainForm = Global.Project1.MainForm + End Sub + End Class +End Namespace diff --git a/COM350/Project1/Project1/My Project/Application.myapp b/COM350/Project1/Project1/My Project/Application.myapp new file mode 100644 index 0000000..27659f2 --- /dev/null +++ b/COM350/Project1/Project1/My Project/Application.myapp @@ -0,0 +1,10 @@ + + + true + MainForm + false + 0 + true + 0 + true + \ No newline at end of file diff --git a/COM350/Project1/Project1/My Project/AssemblyInfo.vb b/COM350/Project1/Project1/My Project/AssemblyInfo.vb new file mode 100644 index 0000000..d2356e4 --- /dev/null +++ b/COM350/Project1/Project1/My Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + +' Review the values of the assembly attributes + + + + + + + + + + +'The following GUID is for the ID of the typelib if this project is exposed to COM + + +' Version information for an assembly consists of the following four values: +' +' Major Version +' Minor Version +' Build Number +' Revision +' +' You can specify all the values or you can default the Build and Revision Numbers +' by using the '*' as shown below: +' + + + diff --git a/COM350/Project1/Project1/My Project/Resources.Designer.vb b/COM350/Project1/Project1/My Project/Resources.Designer.vb new file mode 100644 index 0000000..91cda33 --- /dev/null +++ b/COM350/Project1/Project1/My Project/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Project1.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set(ByVal value As Global.System.Globalization.CultureInfo) + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/COM350/Project1/Project1/My Project/Resources.resx b/COM350/Project1/Project1/My Project/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/COM350/Project1/Project1/My Project/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/COM350/Project1/Project1/My Project/Settings.Designer.vb b/COM350/Project1/Project1/My Project/Settings.Designer.vb new file mode 100644 index 0000000..5653fe8 --- /dev/null +++ b/COM350/Project1/Project1/My Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.34014 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + _ + Friend Module MySettingsProperty + + _ + Friend ReadOnly Property Settings() As Global.Project1.My.MySettings + Get + Return Global.Project1.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/COM350/Project1/Project1/My Project/Settings.settings b/COM350/Project1/Project1/My Project/Settings.settings new file mode 100644 index 0000000..85b890b --- /dev/null +++ b/COM350/Project1/Project1/My Project/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/COM350/Project1/Project1/Project1.vbproj b/COM350/Project1/Project1/Project1.vbproj new file mode 100644 index 0000000..ee95ddf --- /dev/null +++ b/COM350/Project1/Project1/Project1.vbproj @@ -0,0 +1,137 @@ + + + + + Debug + AnyCPU + {9702F843-0130-4599-AB39-26EA8C4DD19B} + WinExe + Project1.My.MyApplication + Project1 + Project1 + 512 + WindowsForms + v4.5 + + + AnyCPU + true + full + true + true + bin\Debug\ + Project1.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + AnyCPU + pdbonly + false + true + true + bin\Release\ + Project1.xml + 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 + + + On + + + Binary + + + Off + + + On + + + + + + + + + + + + + + + + + + + + + + + + + + + + Form + + + MainForm.vb + Form + + + + True + Application.myapp + + + True + True + Resources.resx + + + True + Settings.settings + True + + + + OptionsForm.vb + + + Form + + + + + MainForm.vb + + + VbMyResourcesResXFileCodeGenerator + Resources.Designer.vb + My.Resources + Designer + + + OptionsForm.vb + + + + + MyApplicationCodeGenerator + Application.Designer.vb + + + SettingsSingleFileGenerator + My + Settings.Designer.vb + + + + + + \ No newline at end of file diff --git a/COM380/Project2/Project2.sln b/COM380/Project2/Project2.sln new file mode 100644 index 0000000..f191f8e --- /dev/null +++ b/COM380/Project2/Project2.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{CD85BFB0-ACC9-4C27-A2D3-D4B451736BCC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CD85BFB0-ACC9-4C27-A2D3-D4B451736BCC}.Debug|Win32.ActiveCfg = Debug|Win32 + {CD85BFB0-ACC9-4C27-A2D3-D4B451736BCC}.Debug|Win32.Build.0 = Debug|Win32 + {CD85BFB0-ACC9-4C27-A2D3-D4B451736BCC}.Release|Win32.ActiveCfg = Release|Win32 + {CD85BFB0-ACC9-4C27-A2D3-D4B451736BCC}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/COM380/Project2/Project2/Project2.cpp b/COM380/Project2/Project2/Project2.cpp new file mode 100644 index 0000000..430edfc --- /dev/null +++ b/COM380/Project2/Project2/Project2.cpp @@ -0,0 +1,102 @@ + +// Project2.cpp : Defines the class behaviors for the application. +// + +#include "stdafx.h" +#include "Project2.h" +#include "Project2Dlg.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + + +// CProject2App + +BEGIN_MESSAGE_MAP(CProject2App, CWinApp) + ON_COMMAND(ID_HELP, &CWinApp::OnHelp) +END_MESSAGE_MAP() + + +// CProject2App construction + +CProject2App::CProject2App() +{ + // support Restart Manager + m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART; + + // TODO: add construction code here, + // Place all significant initialization in InitInstance +} + + +// The one and only CProject2App object + +CProject2App theApp; + + +// CProject2App initialization + +BOOL CProject2App::InitInstance() +{ + // InitCommonControlsEx() is required on Windows XP if an application + // manifest specifies use of ComCtl32.dll version 6 or later to enable + // visual styles. Otherwise, any window creation will fail. + INITCOMMONCONTROLSEX InitCtrls; + InitCtrls.dwSize = sizeof(InitCtrls); + // Set this to include all the common control classes you want to use + // in your application. + InitCtrls.dwICC = ICC_WIN95_CLASSES; + InitCommonControlsEx(&InitCtrls); + + CWinApp::InitInstance(); + + + AfxEnableControlContainer(); + + // Create the shell manager, in case the dialog contains + // any shell tree view or shell list view controls. + CShellManager *pShellManager = new CShellManager; + + // Activate "Windows Native" visual manager for enabling themes in MFC controls + CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows)); + + // Standard initialization + // If you are not using these features and wish to reduce the size + // of your final executable, you should remove from the following + // the specific initialization routines you do not need + // Change the registry key under which our settings are stored + // TODO: You should modify this string to be something appropriate + // such as the name of your company or organization + SetRegistryKey(_T("Local AppWizard-Generated Applications")); + + CProject2Dlg dlg; + m_pMainWnd = &dlg; + INT_PTR nResponse = dlg.DoModal(); + if (nResponse == IDOK) + { + // TODO: Place code here to handle when the dialog is + // dismissed with OK + } + else if (nResponse == IDCANCEL) + { + // TODO: Place code here to handle when the dialog is + // dismissed with Cancel + } + else if (nResponse == -1) + { + TRACE(traceAppMsg, 0, "Warning: dialog creation failed, so application is terminating unexpectedly.\n"); + TRACE(traceAppMsg, 0, "Warning: if you are using MFC controls on the dialog, you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n"); + } + + // Delete the shell manager created above. + if (pShellManager != NULL) + { + delete pShellManager; + } + + // Since the dialog has been closed, return FALSE so that we exit the + // application, rather than start the application's message pump. + return FALSE; +} + diff --git a/COM380/Project2/Project2/Project2.h b/COM380/Project2/Project2/Project2.h new file mode 100644 index 0000000..b483633 --- /dev/null +++ b/COM380/Project2/Project2/Project2.h @@ -0,0 +1,32 @@ + +// Project2.h : main header file for the PROJECT_NAME application +// + +#pragma once + +#ifndef __AFXWIN_H__ + #error "include 'stdafx.h' before including this file for PCH" +#endif + +#include "resource.h" // main symbols + + +// CProject2App: +// See Project2.cpp for the implementation of this class +// + +class CProject2App : public CWinApp +{ +public: + CProject2App(); + +// Overrides +public: + virtual BOOL InitInstance(); + +// Implementation + + DECLARE_MESSAGE_MAP() +}; + +extern CProject2App theApp; \ No newline at end of file diff --git a/COM380/Project2/Project2/Project2.rc b/COM380/Project2/Project2/Project2.rc new file mode 100644 index 0000000..97be10e Binary files /dev/null and b/COM380/Project2/Project2/Project2.rc differ diff --git a/COM380/Project2/Project2/Project2.vcxproj b/COM380/Project2/Project2/Project2.vcxproj new file mode 100644 index 0000000..08bc64f --- /dev/null +++ b/COM380/Project2/Project2/Project2.vcxproj @@ -0,0 +1,128 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {CD85BFB0-ACC9-4C27-A2D3-D4B451736BCC} + Project2 + MFCProj + + + + Application + true + v110 + Unicode + Static + + + Application + false + v110 + true + Unicode + Static + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) + + + Windows + true + + + false + true + _DEBUG;%(PreprocessorDefinitions) + + + 0x0409 + _DEBUG;%(PreprocessorDefinitions) + $(IntDir);%(AdditionalIncludeDirectories) + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) + + + Windows + true + true + true + + + false + true + NDEBUG;%(PreprocessorDefinitions) + + + 0x0409 + NDEBUG;%(PreprocessorDefinitions) + $(IntDir);%(AdditionalIncludeDirectories) + + + + + + + + + + + + + + + + + Create + Create + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/COM380/Project2/Project2/Project2.vcxproj.filters b/COM380/Project2/Project2/Project2.vcxproj.filters new file mode 100644 index 0000000..5b5aaf3 --- /dev/null +++ b/COM380/Project2/Project2/Project2.vcxproj.filters @@ -0,0 +1,63 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + Source Files + + + + + Resource Files + + + + + Resource Files + + + + + Resource Files + + + \ No newline at end of file diff --git a/COM380/Project2/Project2/Project2Dlg.cpp b/COM380/Project2/Project2/Project2Dlg.cpp new file mode 100644 index 0000000..03fc80c --- /dev/null +++ b/COM380/Project2/Project2/Project2Dlg.cpp @@ -0,0 +1,87 @@ + +// Project2Dlg.cpp : implementation file +// + +#include "stdafx.h" +#include "Project2.h" +#include "Project2Dlg.h" +#include "afxdialogex.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#endif + + +// CProject2Dlg dialog + + + +CProject2Dlg::CProject2Dlg(CWnd* pParent /*=NULL*/) + : CDialogEx(CProject2Dlg::IDD, pParent) +{ + m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); +} + +void CProject2Dlg::DoDataExchange(CDataExchange* pDX) +{ + CDialogEx::DoDataExchange(pDX); +} + +BEGIN_MESSAGE_MAP(CProject2Dlg, CDialogEx) + ON_WM_PAINT() + ON_WM_QUERYDRAGICON() +END_MESSAGE_MAP() + + +// CProject2Dlg message handlers + +BOOL CProject2Dlg::OnInitDialog() +{ + CDialogEx::OnInitDialog(); + + // Set the icon for this dialog. The framework does this automatically + // when the application's main window is not a dialog + SetIcon(m_hIcon, TRUE); // Set big icon + SetIcon(m_hIcon, FALSE); // Set small icon + + // TODO: Add extra initialization here + + return TRUE; // return TRUE unless you set the focus to a control +} + +// If you add a minimize button to your dialog, you will need the code below +// to draw the icon. For MFC applications using the document/view model, +// this is automatically done for you by the framework. + +void CProject2Dlg::OnPaint() +{ + if (IsIconic()) + { + CPaintDC dc(this); // device context for painting + + SendMessage(WM_ICONERASEBKGND, reinterpret_cast(dc.GetSafeHdc()), 0); + + // Center icon in client rectangle + int cxIcon = GetSystemMetrics(SM_CXICON); + int cyIcon = GetSystemMetrics(SM_CYICON); + CRect rect; + GetClientRect(&rect); + int x = (rect.Width() - cxIcon + 1) / 2; + int y = (rect.Height() - cyIcon + 1) / 2; + + // Draw the icon + dc.DrawIcon(x, y, m_hIcon); + } + else + { + CDialogEx::OnPaint(); + } +} + +// The system calls this function to obtain the cursor to display while the user drags +// the minimized window. +HCURSOR CProject2Dlg::OnQueryDragIcon() +{ + return static_cast(m_hIcon); +} + diff --git a/COM380/Project2/Project2/Project2Dlg.h b/COM380/Project2/Project2/Project2Dlg.h new file mode 100644 index 0000000..a864ac8 --- /dev/null +++ b/COM380/Project2/Project2/Project2Dlg.h @@ -0,0 +1,31 @@ + +// Project2Dlg.h : header file +// + +#pragma once + + +// CProject2Dlg dialog +class CProject2Dlg : public CDialogEx +{ +// Construction +public: + CProject2Dlg(CWnd* pParent = NULL); // standard constructor + +// Dialog Data + enum { IDD = IDD_PROJECT2_DIALOG }; + + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + + +// Implementation +protected: + HICON m_hIcon; + + // Generated message map functions + virtual BOOL OnInitDialog(); + afx_msg void OnPaint(); + afx_msg HCURSOR OnQueryDragIcon(); + DECLARE_MESSAGE_MAP() +}; diff --git a/COM380/Project2/Project2/ReadMe.txt b/COM380/Project2/Project2/ReadMe.txt new file mode 100644 index 0000000..7cd98a1 --- /dev/null +++ b/COM380/Project2/Project2/ReadMe.txt @@ -0,0 +1,99 @@ +================================================================================ + MICROSOFT FOUNDATION CLASS LIBRARY : Project2 Project Overview +=============================================================================== + +The application wizard has created this Project2 application for +you. This application not only demonstrates the basics of using the Microsoft +Foundation Classes but is also a starting point for writing your application. + +This file contains a summary of what you will find in each of the files that +make up your Project2 application. + +Project2.vcxproj + This is the main project file for VC++ projects generated using an application wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + application wizard. + +Project2.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +Project2.h + This is the main header file for the application. It includes other + project specific headers (including Resource.h) and declares the + CProject2App application class. + +Project2.cpp + This is the main application source file that contains the application + class CProject2App. + +Project2.rc + This is a listing of all of the Microsoft Windows resources that the + program uses. It includes the icons, bitmaps, and cursors that are stored + in the RES subdirectory. This file can be directly edited in Microsoft + Visual C++. Your project resources are in 1033. + +res\Project2.ico + This is an icon file, which is used as the application's icon. This + icon is included by the main resource file Project2.rc. + +res\Project2.rc2 + This file contains resources that are not edited by Microsoft + Visual C++. You should place all resources not editable by + the resource editor in this file. + + +///////////////////////////////////////////////////////////////////////////// + +The application wizard creates one dialog class: + +Project2Dlg.h, Project2Dlg.cpp - the dialog + These files contain your CProject2Dlg class. This class defines + the behavior of your application's main dialog. The dialog's template is + in Project2.rc, which can be edited in Microsoft Visual C++. + +///////////////////////////////////////////////////////////////////////////// + +Other Features: + +ActiveX Controls + The application includes support to use ActiveX controls. + +///////////////////////////////////////////////////////////////////////////// + +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named Project2.pch and a precompiled types file named StdAfx.obj. + +Resource.h + This is the standard header file, which defines new resource IDs. + Microsoft Visual C++ reads and updates this file. + +Project2.manifest + Application manifest files are used by Windows XP to describe an applications + dependency on specific versions of Side-by-Side assemblies. The loader uses this + information to load the appropriate assembly from the assembly cache or private + from the application. The Application manifest maybe included for redistribution + as an external .manifest file that is installed in the same folder as the application + executable or it may be included in the executable in the form of a resource. +///////////////////////////////////////////////////////////////////////////// + +Other notes: + +The application wizard uses "TODO:" to indicate parts of the source code you +should add to or customize. + +If your application uses MFC in a shared DLL, you will need +to redistribute the MFC DLLs. If your application is in a language +other than the operating system's locale, you will also have to +redistribute the corresponding localized resources mfc110XXX.DLL. +For more information on both of these topics, please see the section on +redistributing Visual C++ applications in MSDN documentation. + +///////////////////////////////////////////////////////////////////////////// diff --git a/COM380/Project2/Project2/Resource.h b/COM380/Project2/Project2/Resource.h new file mode 100644 index 0000000..3aad5d2 --- /dev/null +++ b/COM380/Project2/Project2/Resource.h @@ -0,0 +1,18 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Project2.rc +// +#define IDR_MAINFRAME 128 +#define IDD_PROJECT2_DIALOG 102 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 32771 +#endif +#endif diff --git a/COM380/Project2/Project2/res/Project2.ico b/COM380/Project2/Project2/res/Project2.ico new file mode 100644 index 0000000..d56fbcd Binary files /dev/null and b/COM380/Project2/Project2/res/Project2.ico differ diff --git a/COM380/Project2/Project2/res/Project2.rc2 b/COM380/Project2/Project2/res/Project2.rc2 new file mode 100644 index 0000000..c1b8203 Binary files /dev/null and b/COM380/Project2/Project2/res/Project2.rc2 differ diff --git a/COM380/Project2/Project2/stdafx.cpp b/COM380/Project2/Project2/stdafx.cpp new file mode 100644 index 0000000..5a9d227 --- /dev/null +++ b/COM380/Project2/Project2/stdafx.cpp @@ -0,0 +1,8 @@ + +// stdafx.cpp : source file that includes just the standard includes +// Project2.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + + diff --git a/COM380/Project2/Project2/stdafx.h b/COM380/Project2/Project2/stdafx.h new file mode 100644 index 0000000..3ace893 --- /dev/null +++ b/COM380/Project2/Project2/stdafx.h @@ -0,0 +1,54 @@ + +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, +// but are changed infrequently + +#pragma once + +#ifndef VC_EXTRALEAN +#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers +#endif + +#include "targetver.h" + +#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit + +// turns off MFC's hiding of some common and often safely ignored warning messages +#define _AFX_ALL_WARNINGS + +#include // MFC core and standard components +#include // MFC extensions + + +#include // MFC Automation classes + + + +#ifndef _AFX_NO_OLE_SUPPORT +#include // MFC support for Internet Explorer 4 Common Controls +#endif +#ifndef _AFX_NO_AFXCMN_SUPPORT +#include // MFC support for Windows Common Controls +#endif // _AFX_NO_AFXCMN_SUPPORT + +#include // MFC support for ribbons and control bars + + + + + + + + + +#ifdef _UNICODE +#if defined _M_IX86 +#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") +#elif defined _M_X64 +#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") +#else +#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") +#endif +#endif + + diff --git a/COM380/Project2/Project2/targetver.h b/COM380/Project2/Project2/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/COM380/Project2/Project2/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include