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.
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.
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:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.