├── InputBox
├── InputBox.vcxproj
├── InputBox.vcxproj.filters
├── SG_InputBox.cpp
├── SG_InputBox.h
├── stdafx.cpp
├── stdafx.h
├── targetver.h
├── utils.cpp
└── utils.h
├── SG_TestInputBox.sln
├── TestInputBox
├── SG_InputBoxLib.h
├── TestInputBox.cpp
├── TestInputBox.vcxproj
├── TestInputBox.vcxproj.filters
├── pch.cpp
└── pch.h
└── readme.textile
/InputBox/InputBox.vcxproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | Win32
7 |
8 |
9 | Release
10 | Win32
11 |
12 |
13 | Debug
14 | x64
15 |
16 |
17 | Release
18 | x64
19 |
20 |
21 |
22 | 15.0
23 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}
24 | Win32Proj
25 | InputBox
26 | 10.0.17763.0
27 |
28 |
29 |
30 | StaticLibrary
31 | true
32 | v141
33 | Unicode
34 |
35 |
36 | StaticLibrary
37 | false
38 | v141
39 | true
40 | Unicode
41 |
42 |
43 | StaticLibrary
44 | true
45 | v141
46 | Unicode
47 |
48 |
49 | StaticLibrary
50 | false
51 | v141
52 | true
53 | Unicode
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | true
75 | $(SolutionDir)\$(Configuration)\$(Platform)\
76 |
77 |
78 | true
79 | $(SolutionDir)\$(Configuration)\$(Platform)\
80 |
81 |
82 | false
83 | $(SolutionDir)\$(Configuration)\$(Platform)\
84 |
85 |
86 | false
87 | $(SolutionDir)\$(Configuration)\$(Platform)\
88 |
89 |
90 |
91 | Use
92 | Level3
93 | Disabled
94 | true
95 | WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)
96 | true
97 |
98 |
99 | Windows
100 | true
101 |
102 |
103 |
104 |
105 | Use
106 | Level3
107 | Disabled
108 | true
109 | _DEBUG;_LIB;%(PreprocessorDefinitions)
110 | true
111 |
112 |
113 | Windows
114 | true
115 |
116 |
117 |
118 |
119 | Use
120 | Level3
121 | MaxSpeed
122 | true
123 | true
124 | true
125 | WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)
126 | true
127 |
128 |
129 | Windows
130 | true
131 | true
132 | true
133 |
134 |
135 |
136 |
137 | Use
138 | Level3
139 | MaxSpeed
140 | true
141 | true
142 | true
143 | NDEBUG;_LIB;%(PreprocessorDefinitions)
144 | true
145 |
146 |
147 | Windows
148 | true
149 | true
150 | true
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 | Create
163 | Create
164 | Create
165 | Create
166 |
167 |
168 |
169 |
170 |
171 |
172 |
--------------------------------------------------------------------------------
/InputBox/InputBox.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd
11 |
12 |
13 |
14 |
15 | Header Files
16 |
17 |
18 | Header Files
19 |
20 |
21 | Header Files
22 |
23 |
24 | Header Files
25 |
26 |
27 |
28 |
29 | Source Files
30 |
31 |
32 | Source Files
33 |
34 |
35 | Source Files
36 |
37 |
38 |
--------------------------------------------------------------------------------
/InputBox/SG_InputBox.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/InputBox/SG_InputBox.cpp
--------------------------------------------------------------------------------
/InputBox/SG_InputBox.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/InputBox/SG_InputBox.h
--------------------------------------------------------------------------------
/InputBox/stdafx.cpp:
--------------------------------------------------------------------------------
1 | #include "stdafx.h"
2 |
--------------------------------------------------------------------------------
/InputBox/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/InputBox/stdafx.h
--------------------------------------------------------------------------------
/InputBox/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/InputBox/targetver.h
--------------------------------------------------------------------------------
/InputBox/utils.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/InputBox/utils.cpp
--------------------------------------------------------------------------------
/InputBox/utils.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/InputBox/utils.h
--------------------------------------------------------------------------------
/SG_TestInputBox.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.572
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "InputBox", "InputBox\InputBox.vcxproj", "{B6693EB1-EF8C-4AD3-A048-50811D184C2B}"
7 | EndProject
8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestInputBox", "TestInputBox\TestInputBox.vcxproj", "{FBA9D54F-E5B3-4781-B205-19DE44FD30D0}"
9 | ProjectSection(ProjectDependencies) = postProject
10 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B} = {B6693EB1-EF8C-4AD3-A048-50811D184C2B}
11 | EndProjectSection
12 | EndProject
13 | Global
14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
15 | Debug|x64 = Debug|x64
16 | Debug|x86 = Debug|x86
17 | Release|x64 = Release|x64
18 | Release|x86 = Release|x86
19 | EndGlobalSection
20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
21 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Debug|x64.ActiveCfg = Debug|x64
22 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Debug|x64.Build.0 = Debug|x64
23 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Debug|x86.ActiveCfg = Debug|Win32
24 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Debug|x86.Build.0 = Debug|Win32
25 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Release|x64.ActiveCfg = Release|x64
26 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Release|x64.Build.0 = Release|x64
27 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Release|x86.ActiveCfg = Release|Win32
28 | {B6693EB1-EF8C-4AD3-A048-50811D184C2B}.Release|x86.Build.0 = Release|Win32
29 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Debug|x64.ActiveCfg = Debug|x64
30 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Debug|x64.Build.0 = Debug|x64
31 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Debug|x86.ActiveCfg = Debug|Win32
32 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Debug|x86.Build.0 = Debug|Win32
33 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Release|x64.ActiveCfg = Release|x64
34 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Release|x64.Build.0 = Release|x64
35 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Release|x86.ActiveCfg = Release|Win32
36 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}.Release|x86.Build.0 = Release|Win32
37 | EndGlobalSection
38 | GlobalSection(SolutionProperties) = preSolution
39 | HideSolutionNode = FALSE
40 | EndGlobalSection
41 | GlobalSection(ExtensibilityGlobals) = postSolution
42 | VisualSVNWorkingCopyRoot = .
43 | SolutionGuid = {FD1D0F80-6BF8-4156-876F-630D1E8D6A90}
44 | EndGlobalSection
45 | EndGlobal
46 |
--------------------------------------------------------------------------------
/TestInputBox/SG_InputBoxLib.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/TestInputBox/SG_InputBoxLib.h
--------------------------------------------------------------------------------
/TestInputBox/TestInputBox.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haephrati/SGInputBox/f78bc62105e6047ad0459d00950ced890492e640/TestInputBox/TestInputBox.cpp
--------------------------------------------------------------------------------
/TestInputBox/TestInputBox.vcxproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | Win32
7 |
8 |
9 | Release
10 | Win32
11 |
12 |
13 | Debug
14 | x64
15 |
16 |
17 | Release
18 | x64
19 |
20 |
21 |
22 | 15.0
23 | {FBA9D54F-E5B3-4781-B205-19DE44FD30D0}
24 | Win32Proj
25 | TestInputBox
26 | 10.0.17763.0
27 |
28 |
29 |
30 | Application
31 | true
32 | v141
33 | Unicode
34 |
35 |
36 | Application
37 | false
38 | v141
39 | true
40 | Unicode
41 |
42 |
43 | Application
44 | true
45 | v141
46 | Unicode
47 |
48 |
49 | Application
50 | false
51 | v141
52 | true
53 | Unicode
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | true
75 | $(SolutionDir)\$(Configuration)\$(Platform)\
76 |
77 |
78 | true
79 | $(SolutionDir)\$(Configuration)\$(Platform)\
80 |
81 |
82 | false
83 | $(SolutionDir)\$(Configuration)\$(Platform)\
84 |
85 |
86 | false
87 | $(SolutionDir)\$(Configuration)\$(Platform)\
88 |
89 |
90 |
91 | Create
92 | Level3
93 | Disabled
94 | true
95 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
96 | true
97 | pch.h
98 |
99 |
100 | Console
101 | true
102 | $(SolutionDir)\$(Configuration)\$(Platform)\InputBox.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
103 |
104 |
105 | true
106 |
107 |
108 |
109 |
110 | Create
111 | Level3
112 | Disabled
113 | true
114 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions)
115 | true
116 | pch.h
117 |
118 |
119 | Console
120 | true
121 | $(SolutionDir)\$(Configuration)\$(Platform)\InputBox.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
122 |
123 |
124 | true
125 |
126 |
127 |
128 |
129 | Create
130 | Level3
131 | MaxSpeed
132 | true
133 | true
134 | true
135 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
136 | true
137 | pch.h
138 |
139 |
140 | Console
141 | true
142 | true
143 | true
144 | $(SolutionDir)\$(Configuration)\$(Platform)\InputBox.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
145 |
146 |
147 | true
148 |
149 |
150 |
151 |
152 | Create
153 | Level3
154 | MaxSpeed
155 | true
156 | true
157 | true
158 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
159 | true
160 | pch.h
161 |
162 |
163 | Console
164 | true
165 | true
166 | true
167 | $(SolutionDir)\$(Configuration)\$(Platform)\InputBox.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
168 |
169 |
170 | true
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 | Create
180 | Create
181 | Create
182 | Create
183 |
184 |
185 |
186 |
187 |
188 |
189 |
--------------------------------------------------------------------------------
/TestInputBox/TestInputBox.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd
11 |
12 |
13 |
14 |
15 | Header Files
16 |
17 |
18 | Header Files
19 |
20 |
21 |
22 |
23 | Source Files
24 |
25 |
26 | Source Files
27 |
28 |
29 |
--------------------------------------------------------------------------------
/TestInputBox/pch.cpp:
--------------------------------------------------------------------------------
1 | // pch.cpp: source file corresponding to pre-compiled header; necessary for compilation to succeed
2 |
3 | #include "pch.h"
4 |
5 | // In general, ignore this file, but keep it around if you are using pre-compiled headers.
6 |
--------------------------------------------------------------------------------
/TestInputBox/pch.h:
--------------------------------------------------------------------------------
1 | // Tips for Getting Started:
2 | // 1. Use the Solution Explorer window to add/manage files
3 | // 2. Use the Team Explorer window to connect to source control
4 | // 3. Use the Output window to see build output and other messages
5 | // 4. Use the Error List window to view errors
6 | // 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
7 | // 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
8 |
9 | #ifndef PCH_H
10 | #define PCH_H
11 |
12 | // TODO: add headers that you want to pre-compile here
13 |
14 | #endif //PCH_H
15 |
--------------------------------------------------------------------------------
/readme.textile:
--------------------------------------------------------------------------------
1 | h1. About SGInputBox
2 |
3 | An article by Michael Haephrati:
4 | There are several building blocks in programming that are available in most of the languages and make life easy. For example, the ability to pop up a message. In Win32 that would be MessageBox(). Another building block is Inputbox. InputBox() is a very handy command for prompting the user for an input. You can find it in VBA and Visual Basic. However, while Message Boxes can be easily displayed in any c++ program, there is no direct way for calling InputBox like command. For that reason I created SGInputBox(). I am providing this code as a Static library, and with no Resources, which I think is the most comfortable way to be used, and it can be used by Console Applications, plain Win32 applications or any other type of c++ application.
5 | https://www.codeproject.com/Articles/5100299/Adding-a-InputBox-to-any-cplusplus-program
6 |
--------------------------------------------------------------------------------