Solved

MSComm32.ocx

Posted on 1998-03-18
5
225 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
computer science syllabus 3 70
Eclipse IDE - Cannot copy/paste from console output 8 124
Problem with SqlConnection 4 157
C++ :Change value from  DisableCMD registry 4 44
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now