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
Solved

OCX Register

Posted on 1997-04-24
2
449 Views
Last Modified: 2010-05-18
I have a *.ocx file. How to register this OCX by writing a batch file? I want to do this from the setup program.
0
Comment
Question by:jayku
2 Comments
 
LVL 1

Accepted Solution

by:
jmmougeolle earned 20 total points
ID: 1162954
You just have to call the regsvr32.exe in that way:

regsvr32.exe /s /c MyControl.OCX

within the ActiveX Control directory.

/s is for silent
/c is for display error message in consol (other case it will appear in dialog box)

regsvr32.exe could be found in Micrsoft developement Redist directory, in any MSVC installation in the Bin dir. It could be redist freely...

May the MFC be with you!
jmmougeolle@calva.net
0
 

Author Comment

by:jayku
ID: 1162955
Thanks a lot
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

856 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