RS232 comms problem between VB5 and VB6



I have an old VB5 application running on a Win98 machine that needs to
be ported to an XP machine running VB6.

The original application is used to calibrate an industrial hardware
product, and has 4 devices connected to the PC via RS232 serial ports.
The VB communications is handled via the MSCOMM control.

I ported the project to the new PC and opened the project in VB6, then
tried to run it from within the VB application. None of the devices
responded to the startup code.

I started to try to debug each device individually, by writing
separate little apps that address only a single device, and have had
"some" luck: I actually got one of the devices talking properly, but I
am having weird problems with the others.

For example, with another device, a digital multimeter (DMM), I have
had the following weirdness: I wrote an app the sends the Reset, Set
Remote, Test, and ID functions, each tied to separate command buttons,
then started playing with timing, etc, and I finally got it talking to
the DMM, but each button has to be clicked twice in order to get a
response. When I port the same app back to the old machine and VB5, it
works flawlessly!

I really need some help here, so please contribute any ideas you may
have.

TIA

JL

.



Relevant Pages

  • VB5/VB6 RS232 comm problems
    ... I have an old VB5 application running on a Win98 machine that needs to ... be ported to an XP machine running VB6. ... I wrote an app the sends the Reset, ... I posted this to another group but got no response, so, sorry ...
    (microsoft.public.vb.general.discussion)
  • Re: Registering OCX programmatically
    ... >>replace the files that it's dependent on, you risk breaking not only your own application, but every other ... it's not often you'll find a machine without the necessary runtimes for a VB5 app. ... > - although MS lists files, one can never be sure what really applies ...
    (microsoft.public.vb.general.discussion)
  • Re: programmed myself into a corner? architecture question.
    ... is there a good book that would show good .net application design on a ... Back in my VB5 days, there was a good book for this (I ... >>the forms in the main app, ...
    (microsoft.public.dotnet.general)
  • Re: Threading in Visual Basic - Many threads
    ... This app wasn't originally designed ... I usually fire off my ... The VB6 runtime is simply not threadsafe, but in some cases VB5 can be. ...
    (microsoft.public.vb.general.discussion)