473,725 Members | 2,127 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 3870


"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
3787
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
3396
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
1749
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
1874
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
3346
by: Kobe | last post by:
Is there any difference in: template <class T> vs. template <typename T> ?
11
41092
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
2049
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
8888
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
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8097
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...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
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...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
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.