MSComm in VB.NET and Stepper Motor Serial Control

C

Carl Gilbert

Guest
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
 
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" <carl_gilbert@ntlworld.com> wrote in message
news:tmxXb.12515$q%6.4834921@newsfep2-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
 
On Sat, 14 Feb 2004 22:32:58 -0000, "Carl Gilbert"
<carl_gilbert@ntlworld.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
 
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
 
"Carl Gilbert" <carl_gilbert@ntlworld.com> wrote in message
news:tmxXb.12515$q%6.4834921@newsfep2-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
 
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
 
"GrahamH" <pknvdw@yahoo.dot.com> wrote in message
news:7hHXb.5877$vo1.504@newsfep4-winn.server.ntli.net...
"Carl Gilbert" <carl_gilbert@ntlworld.com> wrote in message
news:tmxXb.12515$q%6.4834921@newsfep2-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.
 
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.public.vb.controls is a VB6 group.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..


"Carl Gilbert" <carl_gilbert@ntlworld.com> wrote in message
news:tmxXb.12515$q%6.4834921@newsfep2-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
 
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top