Skip to content

Commit 5c7bb27

Browse files
committed
Initial commit
0 parents  commit 5c7bb27

37 files changed

+223
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.vs/window/v14/.suo

24 KB
Binary file not shown.

window.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Express 2012 for Windows Desktop
4+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "window", "window\window.vcxproj", "{E979DF31-0F6A-43F7-A94B-33EFC97B5040}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Win32 = Debug|Win32
9+
Release|Win32 = Release|Win32
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{E979DF31-0F6A-43F7-A94B-33EFC97B5040}.Debug|Win32.ActiveCfg = Debug|Win32
13+
{E979DF31-0F6A-43F7-A94B-33EFC97B5040}.Debug|Win32.Build.0 = Debug|Win32
14+
{E979DF31-0F6A-43F7-A94B-33EFC97B5040}.Release|Win32.ActiveCfg = Release|Win32
15+
{E979DF31-0F6A-43F7-A94B-33EFC97B5040}.Release|Win32.Build.0 = Release|Win32
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

window.v11.suo

19.5 KB
Binary file not shown.

window.v12.suo

21 KB
Binary file not shown.

window/Release/CL.read.1.tlog

28.3 KB
Binary file not shown.

window/Release/CL.write.1.tlog

530 Bytes
Binary file not shown.

window/Release/cl.command.1.tlog

834 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��

window/Release/link-rc.read.1.tlog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��

window/Release/link-rc.write.1.tlog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��

window/Release/link.command.1.tlog

1.33 KB
Binary file not shown.

window/Release/link.read.1.tlog

3.22 KB
Binary file not shown.

window/Release/link.read.2.tlog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��

window/Release/link.read.3.tlog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��

window/Release/link.read.4.tlog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��

window/Release/link.write.1.tlog

572 Bytes
Binary file not shown.

window/Release/main.obj

801 KB
Binary file not shown.

window/Release/vc110.pdb

364 KB
Binary file not shown.

window/Release/vc120.pdb

364 KB
Binary file not shown.

window/Release/vc140.pdb

356 KB
Binary file not shown.

window/Release/window.lastbuildstate

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#v4.0:v110:false
2+
Release|Win32|C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\|

window/Release/window.log

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(368,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
2+
main.cpp
3+
Creating library ..\..\..\Source\datafiles\Data\window.lib and object ..\..\..\Source\datafiles\Data\window.exp
4+
Generating code
5+
All 146 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
6+
Finished generating code
7+
window.vcxproj -> D:\OneDrive\Projects\Minecraft\Mine-imator\DLL\window\window\..\..\..\Source\datafiles\Data\window.dll
8+
window.vcxproj -> ..\..\..\Source\datafiles\Data\window.pdb (Full PDB)
60.1 KB
Binary file not shown.
992 Bytes
Binary file not shown.
1.61 KB
Binary file not shown.
2.44 KB
Binary file not shown.
6.55 KB
Binary file not shown.
1.32 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2+
Release|Win32|D:\OneDrive\Projects\Minecraft\Mine-imator\DLL\window\|
2.11 KB
Binary file not shown.

window/Release/window.write.1.tlog

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
��^C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\window\window.vcxproj
2+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
3+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
4+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
5+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
6+
^C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\window\window.vcxproj
7+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
8+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
9+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
10+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
11+
^C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\window\window.vcxproj
12+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
13+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
14+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
15+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
16+
^C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\window\window.vcxproj
17+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
18+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
19+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
20+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
21+
^C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\window\window.vcxproj
22+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
23+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
24+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
25+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
26+
^C:\Users\david\OneDrive\Projects\Programs\Mine-imator\DLL\window\window\window.vcxproj
27+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
28+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.lib
29+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp
30+
C:\Users\david\OneDrive\Projects\Programs\Note Block Studio\mcnbs.gmx\datafiles\Data\window.exp

window/main.cpp

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#include <Windows.h>
2+
#include <string>
3+
4+
using namespace std;
5+
6+
#define GMEXPORT extern "C" __declspec (dllexport)
7+
8+
// Converts to a wide string
9+
wstring towstr(const string str) {
10+
wstring buffer;
11+
buffer.resize(MultiByteToWideChar(CP_UTF8, 0, &str[0], -1, 0, 0));
12+
MultiByteToWideChar(CP_UTF8, 0, &str[0], -1, &buffer[0], buffer.size());
13+
return &buffer[0];
14+
}
15+
16+
BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved) {
17+
return TRUE;
18+
}
19+
20+
GMEXPORT double window_maximize(void* handle) {
21+
return ShowWindow((HWND)handle, SW_SHOWMAXIMIZED);
22+
}
23+
24+
GMEXPORT double window_set_focus(void* handle) {
25+
return SetForegroundWindow((HWND)handle);
26+
}
27+
28+
GMEXPORT double message_yesnocancel(char* text, char* title) {
29+
wstring wtext = towstr(text);
30+
wstring wtitle = towstr(title);
31+
switch (MessageBox(NULL, &wtext[0], &wtitle[0], MB_YESNOCANCEL)) {
32+
case IDYES:
33+
return 1;
34+
case IDNO:
35+
return 0;
36+
case IDCANCEL:
37+
return -1;
38+
}
39+
return -1;
40+
}

window/window.vcxproj

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{E979DF31-0F6A-43F7-A94B-33EFC97B5040}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>window</RootNamespace>
17+
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
18+
</PropertyGroup>
19+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
20+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
21+
<ConfigurationType>DynamicLibrary</ConfigurationType>
22+
<UseDebugLibraries>true</UseDebugLibraries>
23+
<PlatformToolset>v140</PlatformToolset>
24+
<CharacterSet>Unicode</CharacterSet>
25+
</PropertyGroup>
26+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
27+
<ConfigurationType>DynamicLibrary</ConfigurationType>
28+
<UseDebugLibraries>false</UseDebugLibraries>
29+
<PlatformToolset>v140</PlatformToolset>
30+
<WholeProgramOptimization>true</WholeProgramOptimization>
31+
<CharacterSet>Unicode</CharacterSet>
32+
</PropertyGroup>
33+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
34+
<ImportGroup Label="ExtensionSettings">
35+
</ImportGroup>
36+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
37+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
38+
</ImportGroup>
39+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
40+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
41+
</ImportGroup>
42+
<PropertyGroup Label="UserMacros" />
43+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
44+
<LinkIncremental>true</LinkIncremental>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
47+
<LinkIncremental>false</LinkIncremental>
48+
<OutDir>..\..\..\Source\datafiles\Data</OutDir>
49+
</PropertyGroup>
50+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
51+
<ClCompile>
52+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
53+
<WarningLevel>Level3</WarningLevel>
54+
<Optimization>Disabled</Optimization>
55+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;WINDOW_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
56+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
57+
</ClCompile>
58+
<Link>
59+
<SubSystem>Windows</SubSystem>
60+
<GenerateDebugInformation>true</GenerateDebugInformation>
61+
</Link>
62+
</ItemDefinitionGroup>
63+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<ClCompile>
65+
<WarningLevel>Level3</WarningLevel>
66+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
67+
<Optimization>MaxSpeed</Optimization>
68+
<FunctionLevelLinking>true</FunctionLevelLinking>
69+
<IntrinsicFunctions>true</IntrinsicFunctions>
70+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;WINDOW_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
71+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
72+
</ClCompile>
73+
<Link>
74+
<SubSystem>Windows</SubSystem>
75+
<GenerateDebugInformation>true</GenerateDebugInformation>
76+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
77+
<OptimizeReferences>true</OptimizeReferences>
78+
</Link>
79+
</ItemDefinitionGroup>
80+
<ItemGroup>
81+
<ClCompile Include="main.cpp" />
82+
</ItemGroup>
83+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
84+
<ImportGroup Label="ExtensionTargets">
85+
</ImportGroup>
86+
</Project>

window/window.vcxproj.filters

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="main.cpp">
19+
<Filter>Source Files</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
</Project>

window/window.vcxproj.user

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup />
4+
</Project>

0 commit comments

Comments
 (0)