Solved

mscOMM.ocx REPLACEMENT?

Posted on 2000-05-12
9
539 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA/SQL - Connect to SQL server and pull data 4 119
Adding to a VBA? 6 78
Macro Excel - Multiple If conditions 2 81
MsgBox 4 69
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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