I wrote a small program which uses the MSComm32.ocx to transfert data from serial port. On my computer, it works very weel, but when I want to execute it on a other computer, an error message tells me that a not supported operation was tempted. This error occurs each time that the program performs the UpdateData() function.  I used the class wizard to map a control variable to the ocx. My question is why it is working on my PC and not on other? I tried to compile my app whith the MFC in a static library but I got the same error.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

  Are you sure that the OCX is available and registered on the "other computer"?

-=- James.
adnrwinAuthor Commented:
The OCX wasn't registered on the other computer. I regitered it (with Visual C++ 4.0 CD) and my program worked. What files are needed to use the MSComm32.ocx and what my installation program does have to write in the registry for registering this OCX?
You register OCX:es with the program REGSVR32.EXE, that is supplied with the NT system itself.

C:\WINNT\SYSTEM32>regsvr32 mscomm32.ocx

To unregister, just use the /u switch. Theres no need to write in the registry yourself.


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
  "stefanr" is right...  You can make the calls to REGSVR32.EXE from your (un)install program.

-=- James.
adnrwinAuthor Commented:
Thanks guys!!
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

From novice to tech pro — start learning today.