473,750 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSComm in VB.NET and Stepper Motor Serial Control

Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm component.
When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

For a download of the project I am trying to upgrade follow the link below,
MSComm Exa.

http://www.developerfusion.com/show/371/

Its just a program to send data to a PCB via the serial port which is my
primary problem.
The PCB controls a stepper motor, http://www.milinst.com/gemodules/5_595.pdf
which says something about sending data like:

+500 20<return> (which should move 500 with 20 millisecond gaps)

Using your PC's Terminal (or HyperTerminal) program. So if anyone know more
about that subject, it woud be greatly apreciated.

Regards, Carl Gilbert
Nov 20 '05 #1
9 9065
* "Carl Gilbert" <ca**********@n tlworld.com> scripsit:
Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.


Q318597 - PRB: Errors When You Use Visual Basic 6.0 Controls in Visual Basic .NET
<http://support.microso ft.com/default.aspx?sc id=kb;en-us;318597>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
As I understand it this component is included with VB6 pro and enterprise
additions and is best way to handle serial ports. Does not come in VB6
standard. You are sending out a formatted string of characters that the
controller understands. With instruments this is a 2 way street most the
time, and you need to know the formatting and the language of the device.

"Carl Gilbert" <ca**********@n tlworld.com> wrote in message
news:tm******** *************@n ewsfep2-win.server.ntli .net...
Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm component. When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

For a download of the project I am trying to upgrade follow the link below, MSComm Exa.

http://www.developerfusion.com/show/371/

Its just a program to send data to a PCB via the serial port which is my
primary problem.
The PCB controls a stepper motor, http://www.milinst.com/gemodules/5_595.pdf which says something about sending data like:

+500 20<return> (which should move 500 with 20 millisecond gaps)

Using your PC's Terminal (or HyperTerminal) program. So if anyone know more about that subject, it woud be greatly apreciated.

Regards, Carl Gilbert

Nov 20 '05 #3
On Sat, 14 Feb 2004 22:32:58 -0000, "Carl Gilbert"
<ca**********@n tlworld.com> wrote:
Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm component.
When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

For a download of the project I am trying to upgrade follow the link below,
MSComm Exa.

http://www.developerfusion.com/show/371/

Its just a program to send data to a PCB via the serial port which is my
primary problem.
The PCB controls a stepper motor, http://www.milinst.com/gemodules/5_595.pdf
which says something about sending data like:

+500 20<return> (which should move 500 with 20 millisecond gaps)

Using your PC's Terminal (or HyperTerminal) program. So if anyone know more
about that subject, it woud be greatly apreciated.

Regards, Carl Gilbert


Microsoft continues to make simple stuff harder and harder to do. Once
upon a time, ordinary mortals could write simple, understandable
programs that did useful stuff fast.

John

Nov 20 '05 #4
save your self some head akes and use C++ or Pascal( delphi)..
in any case ...
you are over looking the simple point.
COMPORTS are seen like file io..
this means you open then as a text file. :)
the file name for example for COM1 is
"COM1:"
:)
open 2 files one for write only and one for read only if you
need 2 way linking..
start a secondary thread and to some input reading on the input
file.. when you receive some charactors store them some where.
etc..
Carl Gilbert wrote:
Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm component.
When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

For a download of the project I am trying to upgrade follow the link below,
MSComm Exa.

http://www.developerfusion.com/show/371/

Its just a program to send data to a PCB via the serial port which is my
primary problem.
The PCB controls a stepper motor, http://www.milinst.com/gemodules/5_595.pdf
which says something about sending data like:

+500 20<return> (which should move 500 with 20 millisecond gaps)

Using your PC's Terminal (or HyperTerminal) program. So if anyone know more
about that subject, it woud be greatly apreciated.

Regards, Carl Gilbert


Nov 20 '05 #5

"Carl Gilbert" <ca**********@n tlworld.com> wrote in message
news:tm******** *************@n ewsfep2-win.server.ntli .net...
Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm component. When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

http://www.yes-tele.com/mscomm.html
regsvr32 (path)\mscomm32 .ocx
Nov 20 '05 #6
Have you ever had a look here?

http://www.codeworks.it/net/VBNetRs232.htm

--
Corrado Cavalli [Microsoft .NET MVP-MCP]
UGIdotNET - http://www.ugidotnet.org
Weblog: http://www.ugidotnet.org/710.blog
Nov 20 '05 #7
"GrahamH" <pk****@yahoo.d ot.com> wrote in message
news:7h******** ********@newsfe p4-winn.server.ntl i.net...

"Carl Gilbert" <ca**********@n tlworld.com> wrote in message
news:tm******** *************@n ewsfep2-win.server.ntli .net...
Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm

component.
When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

http://www.yes-tele.com/mscomm.html
regsvr32 (path)\mscomm32 .ocx


That won't actually work. The ocx needs to be wrapped up for use with .net.
Fortunately, this is quite easy to do, just use AxImp.Exe mscomm32.ocx. Then
its as simple as adding a reference in your project.

Using AxImp will also take care of the licensing issues with the MSComm OCX.
Nov 20 '05 #8
For the record, you're crossposting to a group that has nothing to do with VB.Net. If
"dotnet" isn't in the name, it's not a VB.Net group. Not on the MS servers anyway.
microsoft.publi c.vb.controls is a VB6 group.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..
"Carl Gilbert" <ca**********@n tlworld.com> wrote in message
news:tm******** *************@n ewsfep2-win.server.ntli .net...
Hi
I'm trying to open a vb6 project in vb.net which uses the mscomm component.
When running the vb upgrade wizard in vb.net, an error is raised:

Upgrade failed, unable to load reerenced component
mscomm32.ocx (1.1.0)
You need to install this component before you upgrade the project.

Does anyone know how to install the mscomm component.

For a download of the project I am trying to upgrade follow the link below,
MSComm Exa.

http://www.developerfusion.com/show/371/

Its just a program to send data to a PCB via the serial port which is my
primary problem.
The PCB controls a stepper motor, http://www.milinst.com/gemodules/5_595.pdf
which says something about sending data like:

+500 20<return> (which should move 500 with 20 millisecond gaps)

Using your PC's Terminal (or HyperTerminal) program. So if anyone know more
about that subject, it woud be greatly apreciated.

Regards, Carl Gilbert

Nov 20 '05 #9
Hi,

Perhaps the easiest solution is to download NETcomm.ocx from my homepage.
Add it to your toolbox, and drop it on the form. Then, change a few lines
of the code that would have used MSComm (use InputData instead of Input).

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.
Nov 20 '05 #10

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

Similar topics

2
1446
by: rt | last post by:
Hello, I'm looking for a commerical (supported) .NET serial control with source (just in case) and have found the following and was wondering if anyone has had experience with any of them: http://www.sax.net/dotnet/communications/ http://www.winsoft.sk/ncomport.htm http://www.mycomponentsoftware.com http://www.scientificcomponent.com
2
4434
by: Carl Gilbert | last post by:
Hi I have a stepper motor and PCB from www.milinst.com and have connect the device to my PC through the serial. When using the downloadable application for the device, I receive a comms error. Does anyone know how to send data to the device to get the motor to turn? Regards, Carl Gilbert
2
1820
by: hamil | last post by:
Is there a class library for serial communication. I suppose I could use the VB6 OCX MSComm32.ocx but this would not make a "pure" vb.net program. I have looked but failed to find anything.
0
820
by: Lou | last post by:
How do I set the encoding of the serial port object. I send non-printable text Chr(248) to the control and it shows question marks (?) and doesn't recognize the chr(248) Private Shared Sub SerialPort_DataReceived(ByVal sender As Object, ByVal e As _ System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort.DataReceived
0
1862
by: AlanL | last post by:
I am using MSCOMM for serial control and have an issue with some computers. When the handshake lines (CD, DSR, etc )are not connected on the computer I they generate OnComm events. I can ignore the Oncomm events but the constand calling of the OnComm consumes a huge number of machine cycles and bogs the computer down. If I connect the pins to a valid RS232 voltage then the interrupts stop and everything is happy. This did not occur in...
3
1712
by: cpraveen10 | last post by:
Hi... I am trying to use MSComm for capturing serial data. The serial data is 1A2B3C1A2B3C1A2B3C1A2B3C...... so on which is coming from serial port. From that i have to capture A in the first text box, B in the second text box and C in the third text box...Pls help me out.
0
1704
by: cmdolcet69 | last post by:
I get the following error message when I output to the mscomm: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in COM.exe Additional information: Exception from HRESULT: 0x800A1F52. No one has been able to tell me why this isn't working. I know VB 2003 doesn't have serial control however I need to send this with the mscomm. It will break at the line : comm1.Output = Packet(i)
1
4387
by: abhinav7777 | last post by:
Hi!! I'm Final Year Student(CS).. I'm developing a project which is a prototype of a SPY Vehicle.. I want to know how to access parallel port using C/C++ , VB.Net or Java. Anybody having knowledge about controlling stepper motor using parallel port , help me out..
4
5419
by: kronecker | last post by:
I found this code which may be VB6 but I don't know ' Shut down the Comm port event processing and timer Timer1.Enabled = False Comm1.RThreshold = 0 What is the equivalent in VB.Net? I have the serial port working fine and cannot find the above timer or Rthreshold. K.
0
8840
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
9584
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
9399
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
9345
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6817
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
6083
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4895
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2228
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.