[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

OCX Register

Posted on 1997-04-24
2
Medium Priority
?
474 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

649 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