Solved

OCX Register

Posted on 1997-04-24
2
436 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
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…
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 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.

706 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

22 Experts available now in Live!

Get 1:1 Help Now