Re: How do we instal ocx files?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 02/09/05


Date: Wed, 9 Feb 2005 13:14:20 -0800


<Benton> wrote in message news:e5pDZruDFHA.612@TK2MSFTNGP15.phx.gbl...
>I am not sure exactly how we install ocx files. When I load

ActiveX components (dlls and ocx's for the most part) need to be registered.
If they're not registered, the app doesn't "know" how to deal with them. If
you're trying to get an app working on someone elses PC, create some kind of
setup package (the package and deployment wizard can help with that)... if
this is (these are?) just some components you've downloaded, you'll need to
register them. You can do that by opening a DOS window and browsing to the
folder where they're stored, then type Regsvr32 <the name of the ocx/dll>...
an easier way is to browse to the folder where they're stored, double click
on one of them. The Windows "Open With" dialog should pop up. Browse to your
System32 folder and tell windows to open that ocx with Regsvr32.exe (be sure
to place a check in the box that says "Always use the selected program to
open this type of file")... from then on, just double click any ocx to
register it. Do the same thing with DLLs. Note that running regsvr32 on a
non-activeX dll will show an error dialog. No big deal as it just means that
it's not an activeX dll.

-- 
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups.. 


Relevant Pages

  • Re: problem porting vb dev apps to new computer
    ... > created by the "C' project, then do the same for all the ocx from the ... you can select any number of dlls or ocxs in windows ... Register and unregister components with context menus ... > a totally clean system with VS6 that the ocx get built before the parts ...
    (microsoft.public.vb.general.discussion)
  • Re: Registering .dll and .ocx files
    ... Actually, Using the vb Dependency Walker app, I've realized only the .ocx ... files I want to register have the DllRegisterServer() and the .dlls do not. ...
    (microsoft.public.vb.winapi)
  • Re: DLL or OCX
    ... >I stick with DLLs. ... >>As I understand it, when you make OCX file, you make a component ... @Tom - yes - but you can also have Forms in an OCX ... you don't have to register them to use ...
    (comp.lang.basic.visual.misc)
  • Re: Restore of SBS System State
    ... It does not matter for the error when you register some dlls. ... Unable to view event log and some tabs of user's properties on SBS, ... regsvr32 oleaccrc.dll ...
    (microsoft.public.windows.server.sbs)
  • Re: Calling .NET COM object from MFC application
    ... MFC exe calls C# managed DLL which in turn calls other ATL/MFC COM DLLs, ... All the COM and .Net DLLs must be registered on the "clean" machine or they ... assembly (which is properly configured to "Register for COM interop"), ... trying to initialize this "third party" COM. ...
    (microsoft.public.vc.mfc)