API Guides
>
ConceptRT 3.x
Home
Pages
ConceptRT API
Examples
SystemMode/main.cpp
Main template for SystemMode application.
#include "ConceptRTOs.h"
using namespace
ConceptRT
;
#define LICENCEFILENAME "ConceptRtLicence.xml"
void
ConceptRTLoadLicence
()
{
// load your licence file
if
(
FileExists
(
GetExecutablePath
() + LICENCEFILENAME))
{
FileStream
file(
GetExecutablePath
() + LICENCEFILENAME,
FileModeTextRead
);
MessageCollector<1024, 100>
messages;
LicenceManager::GetInstance
().
LoadFromStream
(file, &messages);
if
(messages.
GetCount
() > 0)
{
System::GetConsole
().
WriteLine
(
"!!!! Warning !!!! Load licence messages :"
);
Int32
count = messages.
GetCount
();
for
(
Int32
index = 0; index < count; index++)
System::GetConsole
().
WriteLine
(messages[index]);
System::GetConsole
().
WriteLine
();
}
}
}
// ConceptRT Entry point
void
ConceptRTMain
()
{
ConceptRTOsInitialize
(
GetExecutablePath
());
// put your code here
ConceptRTOsFinalize
();
}
Last documentation update : 27 October 2016 - Copyright © 2015 Objectis. All rights reserved.