feat(*): initial commit
This commit is contained in:
31
Redcraft.FocusIME/Source/Private/Main.cpp
Normal file
31
Redcraft.FocusIME/Source/Private/Main.cpp
Normal file
@ -0,0 +1,31 @@
|
||||
#include <windows.h>
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
|
||||
#pragma warning(disable: 4996)
|
||||
|
||||
// ReSharper disable CppDeprecatedEntity
|
||||
// ReSharper disable CppClangTidyCertErr33C
|
||||
|
||||
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
||||
{
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
AllocConsole();
|
||||
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
|
||||
SetConsoleTitle("FocusIME");
|
||||
|
||||
std::cout << "Hello, FocusIME!" << std::endl;
|
||||
|
||||
std::this_thread::sleep_for(3s);
|
||||
|
||||
FreeConsole();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// ReSharper restore CppDeprecatedEntity
|
||||
// ReSharper restore CppClangTidyCertErr33C
|
Reference in New Issue
Block a user