Solved

MSComm32.ocx

Posted on 1998-03-18
5
224 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
Comment Utility
  Are you sure that the OCX is available and registered on the "other computer"?

-=- James.
0
 

Author Comment

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

-=- James.
0
 

Author Comment

by:adnrwin
Comment Utility
Thanks guys!!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

744 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

8 Experts available now in Live!

Get 1:1 Help Now