diff --git a/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1.cpp new file mode 100644 index 0000000..147a29c --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1.cpp @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#include "pch.h" +#include +#include + +int main() +{ + std::cout << "Hello World!\n"; + std::cout << "Press any key to exit...\n"; + _getch(); +} diff --git a/ConsoleApplication1/ConsoleApplication1.vcxproj b/ConsoleApplication1/ConsoleApplication1.vcxproj new file mode 100644 index 0000000..49a7e9a --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1.vcxproj @@ -0,0 +1,168 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {13D2B9E0-489B-4490-9947-45893FFD7DB2} + Win32Proj + ConsoleApplication1 + 10.0.17763.0 + + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + Application + true + v141 + Unicode + + + Application + false + v141 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + Disabled + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + + + + + Use + Level3 + Disabled + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + + + + + Use + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + true + true + + + + + Use + Level3 + MaxSpeed + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + pch.h + + + Console + true + true + true + + + + + + + + + Create + Create + Create + Create + + + + + + \ No newline at end of file diff --git a/ConsoleApplication1/ConsoleApplication1.vcxproj.filters b/ConsoleApplication1/ConsoleApplication1.vcxproj.filters new file mode 100644 index 0000000..d56371c --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;ipp;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 + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/ConsoleApplication1/pch.cpp b/ConsoleApplication1/pch.cpp new file mode 100644 index 0000000..3a3d12b --- /dev/null +++ b/ConsoleApplication1/pch.cpp @@ -0,0 +1,5 @@ +// pch.cpp: source file corresponding to pre-compiled header; necessary for compilation to succeed + +#include "pch.h" + +// In general, ignore this file, but keep it around if you are using pre-compiled headers. diff --git a/ConsoleApplication1/pch.h b/ConsoleApplication1/pch.h new file mode 100644 index 0000000..b04e71e --- /dev/null +++ b/ConsoleApplication1/pch.h @@ -0,0 +1,14 @@ +// Tips for Getting Started: +// 1. Use the Solution Explorer window to add/manage files +// 2. Use the Team Explorer window to connect to source control +// 3. Use the Output window to see build output and other messages +// 4. Use the Error List window to view errors +// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project +// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file + +#ifndef PCH_H +#define PCH_H + +// TODO: add headers that you want to pre-compile here + +#endif //PCH_H diff --git a/MFCClient.sln b/MFCClient.sln index 394ee97..3703d4a 100644 --- a/MFCClient.sln +++ b/MFCClient.sln @@ -4,6 +4,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 VisualStudioVersion = 15.0.28016.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MFCClient", "MFCClient\MFCClient.vcxproj", "{AC720CCA-08F3-4E48-8722-AB6B7806205B}" + ProjectSection(ProjectDependencies) = postProject + {83737B07-BCB9-471F-B6D9-03408BAD3FBB} = {83737B07-BCB9-471F-B6D9-03408BAD3FBB} + {E9B7CACE-566F-476A-871D-D3D0ED8A2BBF} = {E9B7CACE-566F-476A-871D-D3D0ED8A2BBF} + {13D2B9E0-489B-4490-9947-45893FFD7DB2} = {13D2B9E0-489B-4490-9947-45893FFD7DB2} + EndProjectSection EndProject Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "Packaging", "Packaging\Packaging.wapproj", "{59D68FAA-1363-4475-ADA9-61BAFCA202E8}" ProjectSection(ProjectDependencies) = postProject @@ -20,6 +25,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32TestApp", "Win32TestAp EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WindowsStoreDLL", "WindowsStoreDLL\WindowsStoreDLL.vcxproj", "{83737B07-BCB9-471F-B6D9-03408BAD3FBB}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.vcxproj", "{13D2B9E0-489B-4490-9947-45893FFD7DB2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -120,6 +127,20 @@ Global {83737B07-BCB9-471F-B6D9-03408BAD3FBB}.Release|x64.Build.0 = Release|x64 {83737B07-BCB9-471F-B6D9-03408BAD3FBB}.Release|x86.ActiveCfg = Release|Win32 {83737B07-BCB9-471F-B6D9-03408BAD3FBB}.Release|x86.Build.0 = Release|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|ARM.ActiveCfg = Debug|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|ARM64.ActiveCfg = Debug|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|x64.ActiveCfg = Debug|x64 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|x64.Build.0 = Debug|x64 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|x86.ActiveCfg = Debug|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Debug|x86.Build.0 = Debug|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|Any CPU.ActiveCfg = Release|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|ARM.ActiveCfg = Release|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|ARM64.ActiveCfg = Release|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|x64.ActiveCfg = Release|x64 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|x64.Build.0 = Release|x64 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|x86.ActiveCfg = Release|Win32 + {13D2B9E0-489B-4490-9947-45893FFD7DB2}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/MFCClient/MFCClient.rc b/MFCClient/MFCClient.rc index 7bd124f..9f61f4b 100644 Binary files a/MFCClient/MFCClient.rc and b/MFCClient/MFCClient.rc differ diff --git a/MFCClient/MFCClientDlg.cpp b/MFCClient/MFCClientDlg.cpp index b244a60..02b9ee8 100644 Binary files a/MFCClient/MFCClientDlg.cpp and b/MFCClient/MFCClientDlg.cpp differ diff --git a/MFCClient/MFCClientDlg.h b/MFCClient/MFCClientDlg.h index 2e39344..eea3110 100644 Binary files a/MFCClient/MFCClientDlg.h and b/MFCClient/MFCClientDlg.h differ diff --git a/MFCClient/Resource.h b/MFCClient/Resource.h index b18658c..68c997b 100644 Binary files a/MFCClient/Resource.h and b/MFCClient/Resource.h differ diff --git a/Packaging/Packaging.wapproj b/Packaging/Packaging.wapproj index 02195ba..989783d 100644 --- a/Packaging/Packaging.wapproj +++ b/Packaging/Packaging.wapproj @@ -72,5 +72,9 @@ MFCClient/WindowsStoreDLL.dll Always + + MFCClient/ConsoleApplication1.exe + Always + \ No newline at end of file diff --git a/WindowsStoreDLL/WindowsStore.cpp b/WindowsStoreDLL/WindowsStore.cpp index 398291e..7e257af 100644 --- a/WindowsStoreDLL/WindowsStore.cpp +++ b/WindowsStoreDLL/WindowsStore.cpp @@ -31,7 +31,7 @@ namespace WinRT } // Initialize the Windows Runtime. - winrt::init_apartment(); + winrt::init_apartment(winrt::apartment_type::single_threaded); // attempt to initialize the Windows Store WinRT Implementation WindowsStoreImpl* store = new WindowsStoreImpl();