Professional Documents
Culture Documents
Introduction
Registering ActiveX
Presentation
Product Engineering & R&D| Global Business Expansion| Global Implementation &Support | Consulting & Advisory Services
8/9/15
NTIL Confidential
Introduction
ActiveX is a Microsoft-created technology that enables different software
applications to share information and functionality.
ActiveX only works with Microsoft applications like Word, Excel, Internet
Explorer and PowerPoint, and will only work on a computer running the
Windows operating system.
ActiveX controls are small applications written in common programming
languages like Visual Basic and C++.
8/9/15
NTIL Confidential
8/9/15
Internet Explorer, the default web browser for windows operating system
comes pre-loaded with an ActiveX control that allows for Windows Media
files to be played directly in the Web page.
Another common ActiveX control plays Flash files (.swf). Internet Explorer
can't play Flash files by itself.
NTIL Confidential
8/9/15
NTIL Confidential
8/9/15
NTIL Confidential
container invokes
control's methods
Control
Container
control sends
event notification
properties are
examined and
modified
8/9/15
NTIL Confidential
ActiveX
Control
8/9/15
NTIL Confidential
Methods
Methods are similar in usage and purpose to the member functions of a
C++ class.
Adding a method using MSVS 2008 wizard.
8/9/15
NTIL Confidential
Events
ActiveX controls use events to notify a container that something has happened
to the control.
Common examples of events include clicks on the control, data entered using
the keyboard, and changes in the controls state. When these actions occur, the
control fires an event to alert the container.
DECLARE_EVENT_MAP(): An event map is declared by the following macro,
located in the header (.H) file of the control class declaration.
8/9/15
NTIL Confidential
Registering ActiveX
When you distribute a Microsoft Visual application that uses an ActiveX
control (.ocx file), the .ocx file must be registered correctly for it to work
correctly.
o It can be either registered by running Microsoft Visual Studio as
Administrator
OR
o You can use the Microsoft Register Server (Regsvr32.exe) to
register a 32- bit .ocx file manually on a 32-bit operating system.
o The syntax for using Regsvr32.exe is as follows:
Regsvr32 [/u] [/s] <OCX File Name>
8/9/15
10
NTIL Confidential
11
NTIL Confidential
8/9/15
12
NTIL Confidential
Thank You..
13
8/9/15
NTIL Confidential