?
Solved

OCX Register

Posted on 1997-04-24
2
Medium Priority
?
466 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
[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 Comments
 
LVL 1

Accepted Solution

by:
jmmougeolle earned 40 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

800 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