Solved

mscOMM.ocx REPLACEMENT?

Posted on 2000-05-12
9
533 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

810 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