473,775 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using MSCOMM32.ocx with VB.net

I have a class with a refence to MSCOMMLib in it so I can use
MSCOMM32.ocx. It works fine on the developement machine where I have
VB6 also installed. When I try to run the app on a machine without VB6
though, I get a licensing error issue. So I read about License Compiler
in the MSDN.net files and it says I can create a license file by using
the lc.exe application. I have tried this but am getting errors. If
someone has a decent example of how to create the license file OR
another method of getting around the license issue please post.
thanks
kevin
Nov 21 '05 #1
5 7276
Its not the license compiler you need to read up on.

When you have VS 6 it comes with the OCX's... They need license files &
registry entries. There is an article on MSDN on what you need to do, but if
you are inexperienced then its a little tricky.

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #2
"Kevin" <kb*****@charte r.net> schrieb:
I have a class with a refence to MSCOMMLib in it so I can use
MSCOMM32.ocx. It works fine on the developement machine where I have
VB6 also installed. When I try to run the app on a machine without VB6
though, I get a licensing error issue.


PRB: Errors When You Use Visual Basic 6.0 Controls in Visual Basic .NET
<URL:http://support.microso ft.com/?scid=kb;EN-US;318597>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3
Crouchie1998 wrote:
Its not the license compiler you need to read up on.

When you have VS 6 it comes with the OCX's... They need license files &
registry entries. There is an article on MSDN on what you need to do, but if
you are inexperienced then its a little tricky.

Crouchie1998
BA (HONS) MCP MCSE

tricky or not it must be done
Nov 21 '05 #4
Herfried K. Wagner [MVP] wrote:
"Kevin" <kb*****@charte r.net> schrieb:
I have a class with a refence to MSCOMMLib in it so I can use
MSCOMM32.ocx. It works fine on the developement machine where I have
VB6 also installed. When I try to run the app on a machine without
VB6 though, I get a licensing error issue.

PRB: Errors When You Use Visual Basic 6.0 Controls in Visual Basic .NET
<URL:http://support.microso ft.com/?scid=kb;EN-US;318597>

thanks much,
I was able to find the reg entry for the Comm control and add it to my
XPe image with great success
kevin
Nov 21 '05 #5
Hi,

The easy way to solve this is to use NETComm.ocx from my homepage. It
wraps MSComm and solves the licensing issue for you. However, there is a KB
article that talks about this, too. Herfried refers you to it.

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Nov 21 '05 #6

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

Similar topics

2
17934
by: Tom Hill | last post by:
I am having trouble using MSComm32.OCX in my VB6 application. When I attempt to use the set command to create the comm object, like this: Dim MSComm1 As Object Set MSComm1 = CreateObject("MSCommLib.MSComm") the compiler errors-out with the message "Run-time error 429: ActiveX comonent can't create object". The online help indicates this problem can be caused when the MSComm32.OCX
3
12816
by: Paul Clark | last post by:
Hello, I wonder if anyone can help me. We have moved over to VS.NET 2003 from evb and I am climbing a very steep learning curve as quick as possible, (the migration path has not been made easy !), anyway I have embedded vb projects running on various mobile platforms using mscomm controls and wish to add the control to VS.net so that I can use it in a new
1
3597
by: Sue | last post by:
I want to deploy a Visual studio.net windows application. This application uses MSCOMM32.OCX control. This application works fine on a development machine. However, if I deploy it on a non-developer machine, the application fails to load. It throws an exception, class is not licensed for use. In the source code, a new instance of the control is created, so, when, at runtime, it looks for a design-time license for the control.
0
1753
by: VR | last post by:
I wrote a wrapper class around mscomm32.ocx in C# and I have a problem deploying it to a PC without IDE installed. I am getting an error message about the class not being licensed. I found some references to that in MS knoweldge base - they claim I need to add the license manually to the cotrol, at run time Here is what my class is like I added reference to mscomm32.ocx in project and then created my class I purposely use MSCommClass...
5
5372
by: Mohammed Abdel-Razzak | last post by:
Dear sirs I`ve added the com component "Microsoft communications control" to my project toolbox (in C#) but when I double clicked it, I got the following error message "You don`t have a license to use this ActiveX control" what should I do to use this control??? or is there any replacement?? thanks Mohammed
1
1935
by: Ken Maitland | last post by:
I have a version of mscomm32.ocx on my machine which is dated 1997. I assume this is the version that came with my Visual Development suite 97. I did not buy a Version 6 and went straight to .net, hence I do not have a version 6.0 of MSCOMM32.OCX I am trying to update a program that was written in C++ version 6 to be supported in C++ .net. Although I can add an activex control to a dialog box I cannot seem to be able to add a class for...
2
2872
by: Urs Vogel | last post by:
Hi For supporting the serial port for remote data collection on manufacturing devices, I added the mscomm32.ocx Active-X component to my .Net 1.1 application, which works fine on my machine (I have VS 2003 FW 1.1 and VS 6.0 installed). When creating the setup, it nicely includes the mscomm32.ocx and the interop module in the setup project. When installing it on a client machine, everything appears to be ok, and even talking to the...
1
2468
by: sajuk | last post by:
Hi, Would anyone have any ideas on checking if the MSCOMM32.OCX component is installed when running my access application. The Access runtime falls over if this is not installed but the full version of access still allows the app to run. I would ideally like some way of checking the system when the application starts and bringing an error if it cannot find the MSCOMM32.OCX file. Any help is appreciated. Thanks
1
4334
by: Atsushi Shiino | last post by:
Hi, I am new comer here. I am develoving application on EXCEL 2007 (VISTA PLATFORM). Precisely the program is a serial port datalogger, but VB6 doesn´t allow me to paste MSComm32.ocx into the working frame even having both legally installed. The same procedure is possible when the platform is windows XP. I would appreciate any help. Thanks
0
9622
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
9454
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
10268
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...
0
10107
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...
1
7464
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
5360
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
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4017
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
3
2853
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.