Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

mscOMM.ocx REPLACEMENT?

Posted on 2000-05-12
9
Medium Priority
?
605 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…
Suggested Courses

604 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