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:37:31 PM(UTC)
Nick Villalobos

Groups: Registered
Posts: 119

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

Below you will see a code snippet on how you can embed your LEADTOOLS license within 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);

Edited by moderator Tuesday, January 29, 2019 2:43:39 PM(UTC)  | Reason: Not specified

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-2024, Yet Another Forum.NET
This page was generated in 0.030 seconds.