Browse Source

retarget Windows SDK to 10.0.14393.0

Hongtae Kim 8 years ago
parent
commit
527bd63d93
2 changed files with 7 additions and 1 deletions
  1. 6
    0
      TestApp1/TestApp1.cpp
  2. 1
    1
      TestApp1/TestApp1.vcxproj

+ 6
- 0
TestApp1/TestApp1.cpp View File

18
 		window = DKWindow::Create("DefaultWindow");
18
 		window = DKWindow::Create("DefaultWindow");
19
 		window->Activate();
19
 		window->Activate();
20
 
20
 
21
+		window->AddEventHandler(this,
22
+			DKFunction([this](const DKWindow::WindowEvent& e) {
23
+			if (e.type == DKWindow::WindowEvent::WindowClosed)
24
+				DKApplication::Instance()->Terminate(0);
25
+		}),
26
+			NULL, NULL);
21
 
27
 
22
 		DKObject<DKGraphicsDevice> device = DKGraphicsDevice::SharedInstance();
28
 		DKObject<DKGraphicsDevice> device = DKGraphicsDevice::SharedInstance();
23
 		device->CreateCommandQueue();
29
 		device->CreateCommandQueue();

+ 1
- 1
TestApp1/TestApp1.vcxproj View File

22
     <ProjectGuid>{AE0AF61D-F069-4AFA-AE24-A75C6A233B37}</ProjectGuid>
22
     <ProjectGuid>{AE0AF61D-F069-4AFA-AE24-A75C6A233B37}</ProjectGuid>
23
     <Keyword>Win32Proj</Keyword>
23
     <Keyword>Win32Proj</Keyword>
24
     <RootNamespace>TestApp1</RootNamespace>
24
     <RootNamespace>TestApp1</RootNamespace>
25
-    <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
25
+    <WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
26
   </PropertyGroup>
26
   </PropertyGroup>
27
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">