Skip to content

Commit

Permalink
close the tilecreator behind you
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas O'Connor committed Jan 27, 2016
1 parent fa0584e commit 77a1f81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Tilandis/Tilandis.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfMfc>Dynamic</UseOfMfc>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand Down Expand Up @@ -114,14 +114,12 @@
<ItemGroup>
<ClCompile Include="cmdline.cpp" />
<ClCompile Include="exceptions.cpp" />
<ClCompile Include="gui.cpp" />
<ClCompile Include="linkmgmt.cpp" />
<ClCompile Include="Tilandis.cpp" />
<ClCompile Include="Utility.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="exceptions.h" />
<ClInclude Include="gui.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="Tilandis.h" />
<ClInclude Include="Utility.h" />
Expand Down
6 changes: 0 additions & 6 deletions Tilandis/Tilandis.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
<ClCompile Include="Utility.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="gui.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Tilandis.h">
Expand All @@ -47,9 +44,6 @@
<ClInclude Include="resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="gui.h">
<Filter>Source Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Tilandis.rc">
Expand Down
5 changes: 5 additions & 0 deletions Tilandis/linkmgmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ bool Tilandis::Links::LaunchLink(const wchar_t * LinkName) {
ShellExecute(NULL, NULL, path.c_str(), args.c_str(), workdir.c_str(), SW_SHOWDEFAULT);
}
//Sleep(2000);
wchar_t sys32[128];
GetEnvironmentVariable(L"WINDIR", sys32, sizeof(sys32));
wcscat_s(sys32, L"\\system32\\taskkill.exe");
//MessageBox(NULL, sys32, sys32, 0);
ShellExecute(NULL, NULL, sys32, L"/fi \"windowtitle eq TileCreator\"", NULL, SW_HIDE);
return true;
}

Expand Down

0 comments on commit 77a1f81

Please sign in to comment.