Monday, March 7, 2011

How to Troubleshoot an OCX file error?

,

What is an OCX file?

An OCX is an Object Linking and Embedding (OLE) custom control, a special-purpose program that can be created for use by applications running on Microsoft's Windows systems. OCXs provide such functions as handling scroll bar movement and window resizing.

If you have a Windows system, you'll find a number of files in your Windows directory with the OCX file name suffix. Object Linking and Embedding was designed to support compound documents The Windows desktop is an example of a compound document and Microsoft used OLE to build it. OLE and the Component Object Model , a more general concept that succeeded OLE, support the development of "plug-and-play" programs that can be written in any language and used dynamically by any application in the system. These programs are known as components and the application in which they are run is known as a container. This component-based approach to application development reduces development time and improves the program capability and quality.

Windows application development programs such as PowerBuilder and Microsoft Access take advantage of OCXs. Microsoft now calls an OCX an ActiveX control, the component object under Microsoft's set of ActiveX technologies, of which the fundamental concept is the Component Object Model and, in a network, the Distributed Component Object Model (DCOM). An OCX or ActiveX control is actually implemented as a dynamic link library DLL module. (You can think of a DLL program as a "subprogram" that can be used by any number of application programs, each of which is a "container" for the DLL or OCX/ActiveX control "object.") Visual Basic and C++ are commonly used to write OCX or ActiveX controls.


How to Register an OCX file in Windows XP?

1. Go to C:\WINDOWS\system32 and see if the ocx file you need is already there, if not then download it  on the internet. Let say you want to register comclt32.ocx, if you already have comclt32.ocx make sure you place it inside C:\WINDOWS\system32. Click Start > Run > and type this: regsvr32 comctl32.ocx


Successful Registration:


How to register an OCX file on Windows Vista?

1. Click the Windows logo, point to "All Programs" then "Accessories." Right-click on "Command Prompt" and select the "Run as Administrator" option.

2. Enter the command "regsvr32 %Systemroot%\System32\comdlg32.ocx" at the command prompt, where %Systemroot% is the folder in which Vista is installed (usually "C:\Windows").

3. Wait for the system to confirm the registration with the message "DllRegisterServer in C:\WINDOWS\System32\comdlg32.ocx succeeded." Reboot the computer to make sure that the registration is complete.

Source: EHow

1 comments:

  • June 24, 2011 at 4:52 AM
    Anonymous says:

    Just say Hello to all, and offcourse especially to the owner on this blog. What I can say that this blog is very vital it is very helpful in my blog too :)
    do check it
    Quick Money

    Thank you add comment to :)

    delete

Post a Comment

 

Topic Central Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger