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 : Monday, April 3, 2006 9:54:52 AM(UTC)

Scci  
Scci

Groups: Registered
Posts: 1


I'm using Lead Tools v13 and vb .net v7.1 on framework 1.1.  I added the following lead com objects: raster, io, and fdx. The below code runs fine on my computer but when I deploy it to a diffenent computer I get class not licensed for use error message.

Dim Raster As New LTRASTERLib.LEADRaster

Dim rIO As New LTRASTERIOLib.LEADRasterIO

Dim rFdx As New LTRASTERFXDLib.LEADRasterFXD

Dim hdc As Long

Raster.UnlockSupport(0, "XXXXXX")

rIO.Load(Raster, "c:\test.tif", 0, 1, 1)

hdc = Raster.GetBitmapDC

rFdx.DrawFillStyle = 0

rFdx.DrawMode = 1

rFdx.DrawRectangle(Nothing, hdc, 5, 5, 300, 500)

Raster.ReleaseBitmapDC()

rIO.Save(Raster, "c:\testVb.tif", 25, 1, 1, 1)

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80040112): Class is not licensed for use
   at WindowsApplication1.Form1.Button1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2300
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
WindowsApplication1
    Assembly Version: 1.0.2284.23243
    Win32 Version: 1.0.2284.23243
    CodeBase: file:///C:/scc/bin/WindowsApplication1.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2300
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2300
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2300
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Interop.LTRASTERLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/scc/bin/Interop.LTRASTERLib.DLL
----------------------------------------
Interop.LTRASTERIOLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/scc/bin/Interop.LTRASTERIOLib.DLL
----------------------------------------
Interop.LTRASTERFXDLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/scc/bin/Interop.LTRASTERFXDLib.DLL
----------------------------------------

 


 

 

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.

#2 Posted : Thursday, April 6, 2006 12:08:02 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

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

This is probably a license string issue.  You have to create an
instance of the LEADRasterFactory object and call the CreateObject
method to pass in the license string.  A sample is available in the Main COM help file.

 
#3 Posted : Friday, July 7, 2006 4:41:56 AM(UTC)

Travis  
Travis

Groups: Registered, Tech Support
Posts: 207

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

Attached is an example (in C# and VB.NET using 2003 .NET) that shows how to dynamically create our LEADRaster object.  You can use this example to create any of our Licensed controls.

File Attachment(s):
Dynamic Create Example.zip (339kb) downloaded 53 time(s).
Travis Montgomery
Senior Sales Engineer
LEAD Logo
 
#4 Posted : Friday, October 20, 2006 12:52:12 PM(UTC)

Travis  
Travis

Groups: Registered, Tech Support
Posts: 207

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

Attached is an example (in VB 6.0 and VC 6.0) that shows how to dynamically create our LEADRaster and LEADRasterView object.  You can use this example to create any of our Licensed controls.
File Attachment(s):
COM - V14 - CreateObject.zip (74kb) downloaded 45 time(s).
Travis Montgomery
Senior Sales Engineer
LEAD Logo
 
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.350 seconds.