Go Premium for a chance to win a PS4. Enter to Win

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

How can i register an active x control in another m/c?

Hi !

    I have used WEbBrowser control(CWebBrowser2)in my application.Now how can i register this control in another m/c..If IE is not present then this won't work...How can i register active x controls???

If any one knows.......pls help...

1 Solution
DllRegisterServer() ?
U can register activeX control by using
regsvr32 <filename>
as of web browser is concerned I am not sure if it works on the m/cs where IE is not present copy the ocx and related files and register it using regsvr32.exe
usually it will be in windows directory.
Hope this helps
WebBrowser is entirely dependent on IE.  Without IE installed, there is no way to use it.  Even if you try to register it without IE, the registration will fail...

Sorry, but it's the Microsoft way. :(
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

ceenaAuthor Commented:
    Thanks for the info. can u suggest something similar to webbrowser which is compatible for IE and NN...i want to display an html page in my dialog...but that can be the result of a cgi script..

Thanks again,
Hi Ceena..
If u are having ur one OCX file than u can use Regsvr32.exe to register the control on another machine.But for webbrowser control u can try this.hope this will work.
Since u are using the browser control in an application.So make installation and put shdocvw.dll from one system which has this file and install it into the target system windows directory..
I mean in NT copy it in C:\winnt\system32. This dll will automatically register it..
With Regards..
Displaying html is not particularly easy.  Unforntunately, I don't know of any free source code, so unless you plan on buying a product to display html (I have seen some in Visual Basic Programmer's Journal and similar magazines) you may _have_ to use Internet Explorer.  IMHO, it is not too unreasonable to require Internet Explorer 4 or higher, just check the registry key HLM\Software\Microsoft\Internet Explorer\Version and tell the user if they need to install IE.  There are probably better ways to see if it is really installed, but that is the first place I look.

BTW, you probably already know this, but Microsoft insists you use their own setup package for IE and not copy the dlls to your own setup.

Hope this helps...

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now