Solved

mscOMM.ocx REPLACEMENT?

Posted on 2000-05-12
9
528 Views
Last Modified: 2013-12-25
I have a noddy little VB3 terminal program that I am updating in VB6, it upgraded to the OCX but it is crap and I need a replacement.

I NT4, I can recieve data with hyperterminal but mscomm.ocx just returns "?"s, I know this is the default for parity errors but I haven't got any parity errors (have HP analyser on the serial line), I set the parity replace to "" and get no parity error events.

Is there a drop in replacement out there?
0
Comment
Question by:chris_a
9 Comments
 
LVL 9

Expert Comment

by:GivenRandy
ID: 2805512
Why is it crap?  The latest version, in VB6 works well.  I remember some problems with MSComm around the VB3 time period.  We have been using MSComm reliably at 115k bps and with 56k bps modems.  No problems once it is setup properly (something you have to do with any comm control).
0
 
LVL 3

Expert Comment

by:kfrick
ID: 2806025
Ditto GR....
I use mscomm32.ocx all the time...works like a charm..

0
 
LVL 2

Author Comment

by:chris_a
ID: 2806331
Ok, the VB3 version worked, I just let it upgrade and it stopped working, I can send data but it corrupts the data recieved.

If I set up a loopback cable and send the letter 'a' I get a comm rx event and the result is a '?'.

If I send an 'a' thru the cable in hyperterminal I get an 'a' back so the hardware is ok, the cable is ok.

So how do you suggest I set up the control to send and recieve at 9600:n,8,1. I am talking to a 3 wire device so can ignore handshaking and the protocol will deal with any parity errors.

It is unusual for MS to get such support I guess it is my fault I always hit the limits of there components quite quickly, from the ify TTS in DOS days, thru the leaky socket control to the unstoppable queries of the datashape service. MS have fully used up my benefit of the doubt quota.

0
 
LVL 9

Expert Comment

by:GivenRandy
ID: 2806670
In the VB area, you should find a VBTerminal.  Have you tried that?  It has all the source code that you can look at as well.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Author Comment

by:chris_a
ID: 2807349
Sorry there are dozens of VB sites, to which site do you refer?
0
 
LVL 9

Accepted Solution

by:
GivenRandy earned 50 total points
ID: 2807391
0
 
LVL 1

Expert Comment

by:ofirg
ID: 2807837
0
 
LVL 2

Author Comment

by:chris_a
ID: 2809784
Orfig

I am building and running under NT4 SP6a so this aint it, thanks anyway.

I shall try compiling the example code and play spot the difference if it works.

0
 
LVL 2

Author Comment

by:chris_a
ID: 2810026
Orfig

What do you know, that was it the sample code from GivenRandy contains StrConv(<variant>, vbUnicode), I will accept GivenRandies and post another question for you to get points too.

GivenRandy

Thanks that did it, funny I have the full MSDN Universal disk set here but it seems to have a dire search faciliity, I often use the online MSDN instead.

A happier Chris
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now