comsetCommStateFailed

I get this error using the MSComm Control Ver 6.0 with mscomm.

When I use the same control on my PC it works OK.

I am using NT4.0 on my PC SP3 and NT4.0 on my laptop SP5.

If I set an Invlaid Port No it errors as you would expect but if I set a viable port I get the above error (8015).  The setting of the port match the settings on my PC.

Thank you

VoodooMan
LVL 5
VoodoomanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kfrickCommented:
OK, so the control works on your PC, but not on your Laptop, correct?

What is the CommPort number assigned to the control?

Is it possible that some other resource in your laptop (built-in modem, IR Port) could ALREADY have the port open?

Check that nothing else on your Laptop is already using the selected port....

And, put SP5 on your PC! ;-)

-kf
0
VoodoomanAuthor Commented:
This is the correct answer.

The instructions for setting up the port on my laptop supplied by MITAC where completely incorrect.  The instructions said that the serial sets up as COMM1 when in fact it is COMM2.  As NT4 doesnt plug and play the resources where correct but the COMM Port was set at COMM1.


Looking at the port in Win95 showed it assigned as Comm2 not COMM1 as shown in NT and the Manual.

Deleting COMM1 and creating COMM2 in NT resolved the problem - same resources.

SP4 is loaded as I work with  a client with 300 pcs connected to SQL Server with NT4 SP4 currently installed - I cant upgrade until they do!
0
kfrickCommented:
Make sure the Comm Ports are properly assigned on your PC & laptop....see comment text below...

Glad it worked out.
-kf
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VoodoomanAuthor Commented:
Thanks a lot - Voodooman!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.