Solved

MSComm32.ocx

Posted on 1998-03-18
5
234 Views
Last Modified: 2011-10-03
Hi,
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.
Thanks
0
Comment
Question by:adnrwin
[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
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1183612
  Are you sure that the OCX is available and registered on the "other computer"?

-=- James.
0
 

Author Comment

by:adnrwin
ID: 1183613
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?
0
 
LVL 3

Accepted Solution

by:
stefanr earned 20 total points
ID: 1183614
You register OCX:es with the program REGSVR32.EXE, that is supplied with the NT system itself.

I.e.
C:\WINNT\SYSTEM32>regsvr32 mscomm32.ocx

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

/Stefan
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1183615
  "stefanr" is right...  You can make the calls to REGSVR32.EXE from your (un)install program.

-=- James.
0
 

Author Comment

by:adnrwin
ID: 1183616
Thanks guys!!
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

634 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