473,768 Members | 8,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using MSComm32.ocx with .NET

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
project. Anybody know how to ?

If I do an 'Add Reference' in the project it complains
that I can only add dll's and not ocx components.

I presume I have to include an instance of the mscomm
class somehow but having searched MSDN for hours, (all I
found was the C++ example VcTerm which is double dutch to
me), I am still no further forwards.

Thanks in advance to anyone who can show me the light.

Jul 21 '05 #1
3 12814
DS
Hello,

I am trying to find out what support .NET has for the
MSCOMM control I used in VB6. Is there a new one for .NET
or do you have to use the MSCOMM control from VB6? Does
the control upgrade to a .NET app?

Thanks
-----Original Message-----
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
project. Anybody know how to ?

If I do an 'Add Reference' in the project it complains
that I can only add dll's and not ocx components.

I presume I have to include an instance of the mscomm
class somehow but having searched MSDN for hours, (all I
found was the C++ example VcTerm which is double dutch tome), I am still no further forwards.

Thanks in advance to anyone who can show me the light.

.

Jul 21 '05 #2
Hi,

If you have Visual Studio 6, you can use MSComm32.ocx. Simply Browse to the
file, select it, and this will add it to your toolbox. If you do not have
VS 6 installed, the simplest solution is to download NETComm.ocx (free) from
my homepage. It is fully licensed for use with .NET, and does not need
Visual Studio 6. You still browse to the control, and add it manually (Click
on the COM Components tab in the Customize Toolbox dialog, then click Browse
to select).

I include an example with NETComm (and there is another that you can
download from my site). I have lots of other examples in my book. See
below.

Dick
--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Jul 21 '05 #3
Hi,

See my other reply. You can download NETcomm.ocx from my homepage (free).
There are native .NET classes available on the web, and I provide one in my
book (see below). These use Platform Invoke to call the native Windows
32-bit serial communications APIs, behind the scenes. As of today, the .NET
framework does not have any built-in serial communications support.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
Jul 21 '05 #4

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

Similar topics

2
17933
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
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
1752
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
2871
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...
5
7275
by: Kevin | last post by:
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...
3
432
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
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
0
9407
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
10017
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
9843
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8840
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
5283
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
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3932
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
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
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.