Initial ui test.
This commit is contained in:
parent
7fcc8e43ae
commit
36515556b8
15 changed files with 178 additions and 28 deletions
|
@ -16,32 +16,13 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
void initializeCommandLineArgs(CommandLineArgs* args)
|
||||
{
|
||||
int nArgs{ 0 };
|
||||
auto szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
|
||||
if (szArglist == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<std::string> windowsArgs(nArgs);
|
||||
for (int idx = 0; idx < nArgs; idx++)
|
||||
{
|
||||
windowsArgs[idx] = StringUtils::convert(szArglist[idx]);
|
||||
}
|
||||
LocalFree(szArglist);
|
||||
|
||||
args->process(windowsArgs);
|
||||
}
|
||||
|
||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
||||
{
|
||||
std::ofstream out("out.txt");
|
||||
std::cout.rdbuf(out.rdbuf());
|
||||
|
||||
auto args = CommandLineArgs::Create();
|
||||
initializeCommandLineArgs(args.get());
|
||||
CommandLineArgs::initialize(args.get());
|
||||
args->recordLaunchPath();
|
||||
|
||||
// Start the main app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue