Solved

mscOMM.ocx REPLACEMENT?

Posted on 2000-05-12
9
523 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
Comment Utility
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
Comment Utility
Ditto GR....
I use mscomm32.ocx all the time...works like a charm..

0
 
LVL 2

Author Comment

by:chris_a
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 2

Author Comment

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

Accepted Solution

by:
GivenRandy earned 50 total points
Comment Utility
0
 
LVL 1

Expert Comment

by:ofirg
Comment Utility
0
 
LVL 2

Author Comment

by:chris_a
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

771 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

13 Experts available now in Live!

Get 1:1 Help Now