-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyleConverter.cpp
More file actions
37 lines (32 loc) · 884 Bytes
/
StyleConverter.cpp
File metadata and controls
37 lines (32 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//---------------------------------------------------------------------------
#include <fmx.h>
#pragma hdrstop
#pragma argsused
#ifdef _WIN32
#include <tchar.h>
#else
typedef char _TCHAR;
#define _tmain main
#endif
#include <stdio.h>
#include <iostream>
#include <memory>
#include <System.SysUtils.hpp>
#include "StyleConverterApplication.h"
//---------------------------------------------------------------------------
int _tmain(int argc, _TCHAR* argv[])
{
int Result = 0;
try
{
auto Application = std::make_unique<TStyleConverterApplication>();
Application->Run();
}
catch(Exception &exception)
{
std::wcerr << exception.Message.c_str() << std::endl;
Result = 1; // Error
}
return Result;
}
//---------------------------------------------------------------------------