Registration

<< Click to Display Table of Contents >>

Navigation:  Introduction >

Registration

 

You can register CADEditorX in 3 different ways:

 

1. Start XML IDE. Click the Execute XML button. After it the CADEditorX Registration dialog box opens automatically and you can enter your registration data in the required fields.

Or press the Help icon in the opened Form and select Register CADEditorX.

 

2. Call the StRg function from CADEditorLib.ocx.

 

For VB:

StRg should be called with registration parameters. After ActiveX is registered, StRg should be called once more when loading application which uses CADEditorX.

 

StRg returns 1 if the registration is successful.

StRg returns 0 if the registration failed. 0 can be if registration data is incorrect or ActiveX has already been registered.

StRg returns 2 if the CADEditorX has already been registered before (for instance, by registration via Registration form).

---------------------------------------------

 

3. Use XML

C# example:

 

private void Form1_Load(object sender, EventArgs e)

 {

           axSgCADEditor1.ProcessXML("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +

         "<cadsofttools version=\"2\">" +

         "<!--0 - Registration error. -->" +

         "<!--1 - Registration was successful. -->" +

         "<!--2 - The application has been registered before. -->" +

                 "<registration User=\"user\" EMail=\"user@email.com\" Key=\"1234567890qwertyuiopasdfghjklzxcvbnm1\"/>" +

                 "</cadsofttools>");

         ...

 }

 

Go to CADEditorX