include LicStreamWriter int main try using namespace LicFlex LicStream

 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
#include "LicStreamWriter.h"
int main()
{
try
{
using namespace LicFlex;
LicStreamWriter stm;
LicCryptXor crypt("Password");
stm.open("out.lic");
stm.BeginEncryptedBlock(&crypt);
stm.writeTagData(TAG_FULLNAME, "EO");
stm.writeTagData(TAG_VERSION, (u_char)7);
stm.EndEncryptedBlock();
stm.close();
}
catch(...)
{
}
return 0;
}