From ad96a924626ddc33d083aec5fa9b2b18df213d6a Mon Sep 17 00:00:00 2001 From: Ryan Linton Date: Mon, 27 Feb 2017 16:36:06 -0800 Subject: [PATCH] Initial progress toward WPF support; unable to include FacebookDialog.g.h --- winsdkfb/winsdkfb.sln | 26 +- winsdkfb/winsdkfb/winsdkfb.Shared/pch.h | 2 + winsdkfb/winsdkfb_wpf/ReadMe.txt | 48 ++++ winsdkfb/winsdkfb_wpf/dllmain.cpp | 19 ++ winsdkfb/winsdkfb_wpf/resource.h | 14 + winsdkfb/winsdkfb_wpf/stdafx.cpp | 8 + winsdkfb/winsdkfb_wpf/stdafx.h | 16 ++ winsdkfb/winsdkfb_wpf/targetver.h | 8 + winsdkfb/winsdkfb_wpf/winsdkfb_wpf.aps | Bin 0 -> 1380 bytes winsdkfb/winsdkfb_wpf/winsdkfb_wpf.cpp | 6 + winsdkfb/winsdkfb_wpf/winsdkfb_wpf.rc | Bin 0 -> 2664 bytes winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj | 242 ++++++++++++++++++ .../winsdkfb_wpf/winsdkfb_wpf.vcxproj.filters | 47 ++++ 13 files changed, 432 insertions(+), 4 deletions(-) create mode 100644 winsdkfb/winsdkfb_wpf/ReadMe.txt create mode 100644 winsdkfb/winsdkfb_wpf/dllmain.cpp create mode 100644 winsdkfb/winsdkfb_wpf/resource.h create mode 100644 winsdkfb/winsdkfb_wpf/stdafx.cpp create mode 100644 winsdkfb/winsdkfb_wpf/stdafx.h create mode 100644 winsdkfb/winsdkfb_wpf/targetver.h create mode 100644 winsdkfb/winsdkfb_wpf/winsdkfb_wpf.aps create mode 100644 winsdkfb/winsdkfb_wpf/winsdkfb_wpf.cpp create mode 100644 winsdkfb/winsdkfb_wpf/winsdkfb_wpf.rc create mode 100644 winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj create mode 100644 winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj.filters diff --git a/winsdkfb/winsdkfb.sln b/winsdkfb/winsdkfb.sln index 39eb665..2121a02 100644 --- a/winsdkfb/winsdkfb.sln +++ b/winsdkfb/winsdkfb.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.23107.0 +VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "winsdkfb", "winsdkfb", "{A5BE3147-4D21-457F-A11E-0D0B0C5A5ED8}" EndProject @@ -25,14 +25,21 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDKCppUnit.Windows", "..\sa EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDKCppUnit.WindowsPhone", "..\samples\SDKCppUnit\SDKCppUnit.WindowsPhone\SDKCppUnit.WindowsPhone.vcxproj", "{BA94BFB2-5F5D-4693-88F3-F866DA55EFD0}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winsdkfb_wpf", "winsdkfb_wpf\winsdkfb_wpf.vcxproj", "{364F0BD6-4A53-44DD-83E2-D8C8D99913DC}" + ProjectSection(ProjectDependencies) = postProject + {418FC79B-AA0F-4951-A7D9-7DA89BDF8FB6} = {418FC79B-AA0F-4951-A7D9-7DA89BDF8FB6} + {F833B1E6-2866-4A47-89E2-C474983FE70F} = {F833B1E6-2866-4A47-89E2-C474983FE70F} + EndProjectSection +EndProject Global GlobalSection(SharedMSBuildProjectFiles) = preSolution + ..\samples\SDKCppUnit\SDKCppUnit.Shared\SDKCppUnit.Shared.vcxitems*{19e70697-aa80-43af-b1e4-c49c5b402d48}*SharedItemsImports = 9 + winsdkfb\winsdkfb.Shared\winsdkfb.Shared.vcxitems*{364f0bd6-4a53-44dd-83e2-d8c8d99913dc}*SharedItemsImports = 4 + ..\samples\SDKCppUnit\SDKCppUnit.Shared\SDKCppUnit.Shared.vcxitems*{382dc0b6-f27d-476b-888b-d4b40fe3490b}*SharedItemsImports = 4 winsdkfb\winsdkfb.Shared\winsdkfb.Shared.vcxitems*{418fc79b-aa0f-4951-a7d9-7da89bdf8fb6}*SharedItemsImports = 4 winsdkfb\winsdkfb.Shared\winsdkfb.Shared.vcxitems*{5c0b24d0-ba5f-490a-ab3e-71265d4a0a4b}*SharedItemsImports = 9 - winsdkfb\winsdkfb.Shared\winsdkfb.Shared.vcxitems*{f833b1e6-2866-4a47-89e2-c474983fe70f}*SharedItemsImports = 4 ..\samples\SDKCppUnit\SDKCppUnit.Shared\SDKCppUnit.Shared.vcxitems*{ba94bfb2-5f5d-4693-88f3-f866da55efd0}*SharedItemsImports = 4 - ..\samples\SDKCppUnit\SDKCppUnit.Shared\SDKCppUnit.Shared.vcxitems*{382dc0b6-f27d-476b-888b-d4b40fe3490b}*SharedItemsImports = 4 - ..\samples\SDKCppUnit\SDKCppUnit.Shared\SDKCppUnit.Shared.vcxitems*{19e70697-aa80-43af-b1e4-c49c5b402d48}*SharedItemsImports = 9 + winsdkfb\winsdkfb.Shared\winsdkfb.Shared.vcxitems*{f833b1e6-2866-4a47-89e2-c474983fe70f}*SharedItemsImports = 4 EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|ARM = Debug|ARM @@ -147,6 +154,16 @@ Global {BA94BFB2-5F5D-4693-88F3-F866DA55EFD0}.Release|Win32.Build.0 = Release|Win32 {BA94BFB2-5F5D-4693-88F3-F866DA55EFD0}.Release|Win32.Deploy.0 = Release|Win32 {BA94BFB2-5F5D-4693-88F3-F866DA55EFD0}.Release|x64.ActiveCfg = Release|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Debug|ARM.ActiveCfg = Debug|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Debug|Win32.ActiveCfg = Debug|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Debug|Win32.Build.0 = Debug|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Debug|x64.ActiveCfg = Debug|x64 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Debug|x64.Build.0 = Debug|x64 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Release|ARM.ActiveCfg = Release|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Release|Win32.ActiveCfg = Release|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Release|Win32.Build.0 = Release|Win32 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Release|x64.ActiveCfg = Release|x64 + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -159,5 +176,6 @@ Global {19E70697-AA80-43AF-B1E4-C49C5B402D48} = {2FA47F0B-3633-430A-8717-B94CBFBD40FF} {382DC0B6-F27D-476B-888B-D4B40FE3490B} = {2FA47F0B-3633-430A-8717-B94CBFBD40FF} {BA94BFB2-5F5D-4693-88F3-F866DA55EFD0} = {2FA47F0B-3633-430A-8717-B94CBFBD40FF} + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC} = {A5BE3147-4D21-457F-A11E-0D0B0C5A5ED8} EndGlobalSection EndGlobal diff --git a/winsdkfb/winsdkfb/winsdkfb.Shared/pch.h b/winsdkfb/winsdkfb/winsdkfb.Shared/pch.h index d7c3208..bd79418 100644 --- a/winsdkfb/winsdkfb/winsdkfb.Shared/pch.h +++ b/winsdkfb/winsdkfb/winsdkfb.Shared/pch.h @@ -23,7 +23,9 @@ */ #pragma once +#ifdef _WINRT_DLL #include +#endif #include #include "FBConstants.h" #include "FacebookLoginButton.h" diff --git a/winsdkfb/winsdkfb_wpf/ReadMe.txt b/winsdkfb/winsdkfb_wpf/ReadMe.txt new file mode 100644 index 0000000..6985171 --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/ReadMe.txt @@ -0,0 +1,48 @@ +======================================================================== + DYNAMIC LINK LIBRARY : winsdkfb_wpf Project Overview +======================================================================== + +AppWizard has created this winsdkfb_wpf DLL for you. + +This file contains a summary of what you will find in each of the files that +make up your winsdkfb_wpf application. + + +winsdkfb_wpf.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. + +winsdkfb_wpf.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). + +winsdkfb_wpf.cpp + This is the main DLL source file. + + When created, this DLL does not export any symbols. As a result, it + will not produce a .lib file when it is built. If you wish this project + to be a project dependency of some other project, you will either need to + add code to export some symbols from the DLL so that an export library + will be produced, or you can set the Ignore Input Library property to Yes + on the General propert page of the Linker folder in the project's Property + Pages dialog box. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named winsdkfb_wpf.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/winsdkfb/winsdkfb_wpf/dllmain.cpp b/winsdkfb/winsdkfb_wpf/dllmain.cpp new file mode 100644 index 0000000..69b5891 --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/dllmain.cpp @@ -0,0 +1,19 @@ +// dllmain.cpp : Defines the entry point for the DLL application. +#include "stdafx.h" + +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + diff --git a/winsdkfb/winsdkfb_wpf/resource.h b/winsdkfb/winsdkfb_wpf/resource.h new file mode 100644 index 0000000..29fbf0e --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/resource.h @@ -0,0 +1,14 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by winsdkfb_wpf.rc + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/winsdkfb/winsdkfb_wpf/stdafx.cpp b/winsdkfb/winsdkfb_wpf/stdafx.cpp new file mode 100644 index 0000000..ed4d5b8 --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// winsdkfb_wpf.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/winsdkfb/winsdkfb_wpf/stdafx.h b/winsdkfb/winsdkfb_wpf/stdafx.h new file mode 100644 index 0000000..f3a0737 --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/stdafx.h @@ -0,0 +1,16 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +// Windows Header Files: +#include + + + +// TODO: reference additional headers your program requires here diff --git a/winsdkfb/winsdkfb_wpf/targetver.h b/winsdkfb/winsdkfb_wpf/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/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 diff --git a/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.aps b/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.aps new file mode 100644 index 0000000000000000000000000000000000000000..ef29887871c12be456ed8c130ec54d4003ea1083 GIT binary patch literal 1380 zcmb7EO>fgc5PgAO0_B1bN0fdXT8TypRH*7L*luHy*j4PLL9%3}j?+eM?aGdo_QsK) z2B?3c;)jH{cAQN}39!lsZoFk>AOrFtr!grVG5{ zN;!1eu^+`wbk_?UHT05eKN!W%@o-d6&YbZui2Ij=M;7k*W-v30O*!%y_&H^tVnaih zvkn6a8fZhMM)IgY@`(I6Od`)OUjVQF>i>iYVBUXg70cGgzft+>X|=bklHkg@#jyF8fVjaGx7E$}W4wLC9t|>T#!+Vb5BjW6E zzC#ZIS1LkyNN`PCfKh5a#*nKzwP!?(xeKW8;}U~^)VTDzAzEbe=^HXu#5_LAU@Nib zvypQj0xWxfJV3*NOQ!agC$BbISr-2t+G*4>o&R1Yu`PpeLvF*Jn(kuzT{iU?@Rm_ zRLZLVf_TICl>d3d;@z$@|DSy%7edn^USD^m&+_|xpwAcjNdEF|W>Eprw_lk~Vr1Xu P7;!K63@`*g!=kQ|9b)^YUb*-}k-RedWdkTLB9l@JI zO>fTWnsdODSsUvwGMie~61UVGt-_7?cY^fD$yPG@o4QlQNtyg zL&rMRP#qn@ZE$X@rAs(neou4&r^VUdZ$6Z7dG9<8)C8ABj6+a*&^__bK*wX?I-RZ>XYU#ks|yti8}>b(odZbbi0 z$W%-X1X?BM5l_AkyPT4)jJ1|i1#zmU#tyHQH@!8&;=Ycks-&m7^iQAes&n&@>T0pf z?h`90)a+rSLk$nnYNNmAZf(JB!|g+xu1@!~ftBqApNcbSb$*UVf6#9Hx}MJOR-ap= zwzol~Sn`0#o37tYHh5Y2^K+oBmlPO~3yZ_E?q+hqO25VR5}je2>_7V)mVz&HI09JUAu* literal 0 HcmV?d00001 diff --git a/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj b/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj new file mode 100644 index 0000000..f549621 --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj @@ -0,0 +1,242 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + {364F0BD6-4A53-44DD-83E2-D8C8D99913DC} + Win32Proj + winsdkfb_wpf + 8.1 + + + + DynamicLibrary + true + v140 + Unicode + false + + + DynamicLibrary + false + v140 + true + Unicode + false + + + DynamicLibrary + true + v140 + Unicode + false + + + DynamicLibrary + false + v140 + true + Unicode + false + + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + Disabled + _WINRT_DLL;WIN32;_DEBUG;_WINDOWS;_USRDLL;WINSDKFB_WPF_EXPORTS;%(PreprocessorDefinitions) + true + true + + + false + false + C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages;C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral;$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + $(ProjectDir)..\winsdkfb\winsdkfb.Shared;$(ProjectDir)..\winsdkfb\winsdkfb.Shared\Generated;$(ProjectDir)..\winsdkfb\winsdkfb.Windows;$(ProjectDir)..\winsdkfb\winsdkfb.Windows\Generated;%(AdditionalIncludeDirectories) + + + Console + true + $(OutDir)$(ProjectName).winmd + + + pushd "$(ProjectDir)..\winsdkfb\winsdkfb.Shared" +call codegen.cmd +popd + + + + + Use + Level3 + Disabled + _WINRT_DLL;_DEBUG;_WINDOWS;_USRDLL;WINSDKFB_WPF_EXPORTS;%(PreprocessorDefinitions) + true + true + + + false + false + C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages;C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral;$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + false + /bigobj %(AdditionalOptions) + $(ProjectDir)..\winsdkfb\winsdkfb.Shared;$(ProjectDir)..\winsdkfb\winsdkfb.Shared\Generated;%(AdditionalIncludeDirectories) + + + Console + true + $(OutDir)$(ProjectName).winmd + + + pushd "$(ProjectDir)..\winsdkfb\winsdkfb.Shared" +call codegen.cmd +popd + + + + + Level3 + Use + MaxSpeed + true + true + _WINRT_DLL;WIN32;NDEBUG;_WINDOWS;_USRDLL;WINSDKFB_WPF_EXPORTS;%(PreprocessorDefinitions) + true + true + + + false + C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages;C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral;$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + /bigobj %(AdditionalOptions) + $(ProjectDir)..\winsdkfb\winsdkfb.Shared;$(ProjectDir)..\winsdkfb\winsdkfb.Shared\Generated;$(ProjectDir)..\winsdkfb\winsdkfb.Windows;$(ProjectDir)..\winsdkfb\winsdkfb.Windows\Generated;%(AdditionalIncludeDirectories) + + + Console + true + true + true + $(OutDir)$(ProjectName).winmd + + + pushd "$(ProjectDir)..\winsdkfb\winsdkfb.Shared" +call codegen.cmd +popd + + + + + Level3 + Use + MaxSpeed + true + true + _WINRT_DLL;NDEBUG;_WINDOWS;_USRDLL;WINSDKFB_WPF_EXPORTS;%(PreprocessorDefinitions) + true + true + + + false + C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcpackages;C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral;$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories) + false + /bigobj %(AdditionalOptions) + $(ProjectDir)..\winsdkfb\winsdkfb.Shared;$(ProjectDir)..\winsdkfb\winsdkfb.Shared\Generated;$(ProjectDir)..\winsdkfb\winsdkfb.Windows;$(ProjectDir)..\winsdkfb\winsdkfb.Windows\Generated;%(AdditionalIncludeDirectories) + + + Console + true + true + true + $(OutDir)$(ProjectName).winmd + + + pushd "$(ProjectDir)..\winsdkfb\winsdkfb.Shared" +call codegen.cmd +popd + + + + + + + + + + + + + false + + + false + + + false + + + false + + + + + Create + Create + Create + Create + + + + + + + + + + \ No newline at end of file diff --git a/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj.filters b/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj.filters new file mode 100644 index 0000000..46947ce --- /dev/null +++ b/winsdkfb/winsdkfb_wpf/winsdkfb_wpf.vcxproj.filters @@ -0,0 +1,47 @@ + + + + + {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;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 + + + + + Source Files + + + Source Files + + + Source Files + + + + + Resource Files + + + \ No newline at end of file