API Guides > ConceptRT 3.x
SystemMode/main.cpp

Main template for SystemMode application.

#include "ConceptRTOs.h"
using namespace ConceptRT;
#define LICENCEFILENAME "ConceptRtLicence.xml"
{
// load your licence file
if (FileExists(GetExecutablePath() + LICENCEFILENAME))
{
FileStream file(GetExecutablePath() + LICENCEFILENAME, FileModeTextRead);
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]);
}
}
}
// ConceptRT Entry point
{
// put your code here
}