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 9 9024
* "Carl Gilbert" <ca**********@ntlworld.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.microsoft.com/default.aspx?scid=kb;en-us;318597>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
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**********@ntlworld.com> wrote in message
news:tm*********************@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"
<ca**********@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" <ca**********@ntlworld.com> wrote in message
news:tm*********************@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
"GrahamH" <pk****@yahoo.dot.com> wrote in message
news:7h****************@newsfep4-winn.server.ntli.net... "Carl Gilbert" <ca**********@ntlworld.com> wrote in message news:tm*********************@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" <ca**********@ntlworld.com> wrote in message
news:tm*********************@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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:
...
|
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.
...
|
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.
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
| |