diff --git a/WinChat/WinChat.vcxproj b/WinChat/WinChat.vcxproj
index 9aedcb2..be5b87e 100644
--- a/WinChat/WinChat.vcxproj
+++ b/WinChat/WinChat.vcxproj
@@ -90,8 +90,12 @@
+
+
+
+
diff --git a/WinChat/WinChat.vcxproj.filters b/WinChat/WinChat.vcxproj.filters
index a12df58..a9b5430 100644
--- a/WinChat/WinChat.vcxproj.filters
+++ b/WinChat/WinChat.vcxproj.filters
@@ -18,5 +18,13 @@
Source Files
+
+ Source Files
+
+
+
+
+ Header Files
+
\ No newline at end of file
diff --git a/WinChat/src/Application.cpp b/WinChat/src/Application.cpp
new file mode 100644
index 0000000..4f2ebb3
--- /dev/null
+++ b/WinChat/src/Application.cpp
@@ -0,0 +1,14 @@
+#include "Application.h"
+
+namespace wc {
+ Application::Application(std::string& appName, std::string& appVersion)
+ : m_appName(appName)
+ , m_appVersion(appVersion)
+ {
+ std::printf("%s %s\n", m_appName.c_str(), m_appVersion.c_str());
+ }
+
+ Application::~Application() {
+
+ }
+}
\ No newline at end of file
diff --git a/WinChat/src/Application.h b/WinChat/src/Application.h
new file mode 100644
index 0000000..e972a82
--- /dev/null
+++ b/WinChat/src/Application.h
@@ -0,0 +1,14 @@
+#pragma once
+#include
+
+namespace wc {
+ class Application {
+ public:
+ Application(std::string& appName, std::string& appVersion);
+
+ ~Application();
+ private:
+ const std::string m_appName;
+ const std::string m_appVersion;
+ };
+}
\ No newline at end of file
diff --git a/WinChat/src/main.cpp b/WinChat/src/main.cpp
index 659a88e..1827304 100644
--- a/WinChat/src/main.cpp
+++ b/WinChat/src/main.cpp
@@ -1,11 +1,17 @@
#include
#include "version.h"
+#include "Application.h"
#define APPNAME "WinChat"
int main(int argc, char* argv[]) {
- std::printf(APPNAME " " APPVERSION "\n");
+ std::string appName = APPNAME;
+ std::string appVer = APPVERSION;
+
+ {
+ wc::Application app(appName, appVer);
+ }
std::cin.get();
return EXIT_SUCCESS;