473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

"Class is not licensed for use"

Hi Everyone,

I'm trying to develop a device plug-in , which will instantiate
the device specific dll and load in to the system.as example
I have barcode device and I wrote the wrapper class for the vendor specific
dll with the device specific configuration.Then in the device registering
program[part of my application] will read the those dll in specific folder
and then create the instances of each dll file in the given folder as given
below.

newDevice.Instance =
(IDevice)Activator.CreateInstance(DeviceAssembly.G etType(DeviceType.ToString
()));

Here IDevice is Interface that use for all device.

But following exception has thrown when trying to execute above line.

" Exception has been thrown by the target of an invocation."

When I check the message of inner exception of the above exception , it says

"Class is not licensed for use "

When I went further I found that exception actually thrown by the following
code line

MSCommLib.MSCommClass mPort=new MSCommLib.MSCommClass();
I did my best to figureout this.So if anyone tell me what should I do to
overcome this.

I'm using

MS Windows 2000 Server
..NET Framework 1.1
msomm32.ocx [ version 6.0.81.69]
Any Ideas ?

----------------------
Sumeda Herath
Nov 17 '05 #1
2 3844


"Tiffiny" wrote:
Hi Everyone,

I'm trying to develop a device plug-in , which will instantiate
the device specific dll and load in to the system.as example
I have barcode device and I wrote the wrapper class for the vendor specific
dll with the device specific configuration.Then in the device registering
program[part of my application] will read the those dll in specific folder
and then create the instances of each dll file in the given folder as given
below.


It sounds like you need to pay the 3rd party to use their dll. if you've
already done so, there's a problem with thier licencing setup and you should
contact their support people to resolve the issue.
Nov 17 '05 #2
Hi Dan,
Thank you very much for ur valuable time.But the exception thrown
by the following line of code within the wrapper class.

MSCommLib.MSCommClass mPort=new MSCommLib.MSCommClass();

This is COM component and it's appear to be it's not registered well.So that
the License information of that is not in the registery.I used
regsvr32 command to register it.But I'm not sure that it is the correct way
to do it. Is there any other specific way to register COM component
in local system ?

Thank you ,

Sumeda Herath
"Dan Neely" <Da******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...


"Tiffiny" wrote:
Hi Everyone,

I'm trying to develop a device plug-in , which will instantiate the device specific dll and load in to the system.as example
I have barcode device and I wrote the wrapper class for the vendor specific dll with the device specific configuration.Then in the device registering program[part of my application] will read the those dll in specific folder and then create the instances of each dll file in the given folder as given below.
It sounds like you need to pay the 3rd party to use their dll. if you've
already done so, there's a problem with thier licencing setup and you

should contact their support people to resolve the issue.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dominik Kaspar | last post by:
i'm used to java and its strict way of defining variables. so how is it possible to reach something like a class variable in python? with the following code i didn't have much succes... class...
32
by: Will Hartung | last post by:
Can someone clarify that multiple classes in the "class" attribute are ok and "legal" and not some fluke? So, I can do: ..pink {color: pink} ..bold {font-weight: bold} ..medium {font-size:...
4
by: Jian H. Li | last post by:
Hello, What's the essential differences between the two ways of "class::member" & "object.member"(or object_pointer->member)? class C{ public: void f() {} int i; };
4
by: Generic Usenet Account | last post by:
Hi, I am trying to list all the major C/C++ open source software sources that are out there on the Internet, to see what all I can use without re-inventing the wheel. There are two that I know...
3
by: Alexander Farber | last post by:
Hi, does anyone have an idea, why do I get the following error (I have to use g++296 on RedHat Linux as compiler): In file included from r_dir.cpp:9: r_obey.h:262: declaration of `const...
8
by: kevin | last post by:
I have a form and in the form I have a sub that uses a class I instantiate using visual basic code: Public oCP As New Rs232 'instantiate the comm port I need to share this sub with...
9
by: Kobe | last post by:
Is there any difference in: template <class T> vs. template <typename T> ?
11
by: Kimmo Laine | last post by:
I'm flipping my wig here, people. I'm using classes and making each class a file. when I'm including dependet classess, I use require_once to avoid multiple declarations - yet they happen. I put...
38
by: looping | last post by:
For Python developers around. >From Python 2.5 doc: The list of base classes in a class definition can now be empty. As an example, this is now legal: class C(): pass nice but why this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.