LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOW TO: Embed LEADTOOLS License and Key in your application
#1
Posted
:
Thursday, November 2, 2017 4:37:31 PM(UTC)
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.
LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOW TO: Embed LEADTOOLS License and Key in your application
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.