473,698 Members | 2,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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.T hen 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.Insta nce =
(IDevice)Activa tor.CreateInsta nce(DeviceAssem bly.GetType(Dev iceType.ToStrin g
()));

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.MSCom mClass mPort=new MSCommLib.MSCom mClass();
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 3868


"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.T hen 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.MSCom mClass mPort=new MSCommLib.MSCom mClass();

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******@discu ssions.microsof t.com> wrote in message
news:8D******** *************** ***********@mic rosoft.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.T hen 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
3785
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 Server(threading.Thread): running = 0 (??) def run(self): running = 1 while running:
32
3390
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: 12pt} <p class="bold pink medium">bold pink medium sized text</p>
4
2495
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
1748
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 of, and which I use quite extensively. These are Free Software Foundation (www.fsf.org) and Boost (www.boost.org). I would really appreciate if someone could point to other C/C++ open source software sources. My apologies if this posting is...
3
1866
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 AreaSet &CObeyFile::AreaSet () const' r_areaset.h:197: changes meaning of `AreaSet' from `class AreaSet'
8
11441
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 another form so to declare the sub I use visual basic code: Public Shared Function IsPortAvailable(ByVal ComPort As Integer) As Boolean
9
3343
by: Kobe | last post by:
Is there any difference in: template <class T> vs. template <typename T> ?
11
41089
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 debug_print_backtrace in the file to see how it is included, and here's the output: #0 require_once() called at #1 require_once(\eKirje.textGrid.class.php) called at #0 require_once() called at #1 require_once(\eKirje.kanava.class.php)...
38
2042
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 syntax return old-style class, same as "class C:", and not the new style "class C(object):" ?
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7721
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.