Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, November 2, 2017 4:42:31 PM(UTC)
Nick Villalobos

Groups: Registered, Manager, Tech Support, Administrators
Posts: 77

Was thanked: 2 time(s) in 2 post(s)

Below you will see a code snippet on how you can embed your LEADTOOLS license withing your application without actually having to include your files in the project or have the files stored locally on your machine.
What you are doing is opening the files and essentially pasting the necessary information that is needed for the SetLicense() call into a string and byte array then passing those values in your call.

Code:

string licString =
                 "[License]\n" +
                 "License = <doc><ver>2.0</ver><code>PASTE YOUR LICENSE HERE</code></doc>";

byte[] licBytes = System.Text.Encoding.UTF8.GetBytes(licString);
string key = "PASTE YOUR DEVELOPER KEY HERE";
RasterSupport.SetLicense(licBytes, key);
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2017, Yet Another Forum.NET
This page was generated in 0.115 seconds.