Home All Groups Group Topic Archive Search About

Using MSCOMM32.ocx with VB.net

Author
6 Apr 2005 9:15 PM
Kevin
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

Author
6 Apr 2005 10:51 PM
Crouchie1998
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
Author
7 Apr 2005 12:05 AM
Kevin
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
Author
6 Apr 2005 10:58 PM
Herfried K. Wagner [MVP]
"Kevin" <kbod***@charter.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.microsoft.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/>
Author
7 Apr 2005 1:06 AM
Kevin
Herfried K. Wagner [MVP] wrote:
> "Kevin" <kbod***@charter.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.microsoft.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
Author
7 Apr 2005 3:54 PM
Dick Grier
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.