Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help: access ms comm in visual studio 2005

Status
Not open for further replies.

shan_jii

Newbie level 2
Newbie level 2
Joined
Sep 15, 2006
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
mscomm visual studio 2005

how to access ms comm in visual studio 2005 for parallel and serial port access as it is a component of vb.net
 

mscomm vs2005

MSComm32 is for serial port communications only. If you are using VB.NET do this:
1. Create a new Windows Form
2. Add the MSComm32 COM/OCX Control to your "Windows Forms" by right clicking on the Toolbox and choosing "Customize Toolbox..."
3. Select and add the "Microsoft Communications Control"
4. Draw the new control onto your form (Telephone icon)
If you are deploying your application, you will have to implement a registration of the object in your installation program.
A better solution is to use one of the many serial port classes written for VB which require no registration, such as:
http://www.codeworks.it/net/VBNetRs232.htm

For parallel port access with Windows 2K or XP use inpout32.dll. Or search this forum for parallel port. There have been many discussions about this in the last few weeks.
 

visual studio 2005 mscomm

Watch for the December issue of Circuit Cellar. I believe my article on the subject will be published then. (watch your PrivateMail)
-Aubrey
 

visual studio mscomm .net

Cool. What's your article about?
 

visual studio 2005 serial port update

Why do you want to use MSCOMM in VS2005. Since you have the full power of the .NET 2.0 framework at your fingertips, why not use the System.IO.Ports namespace:

https://msdn2.microsoft.com/en-us/library/system.io.ports.aspx

I just finished updating some legacy code (written using MSCOMM) and used the SerialPort class instead. Much nicer, and much cleaner in .NET.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top