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

Posted on 2000-03-27
Last Modified: 2013-11-25
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...

Question by:ceena

Expert Comment

ID: 2660144
DllRegisterServer() ?

Expert Comment

ID: 2660149
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

Expert Comment

ID: 2661080
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. :(
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.


Author Comment

ID: 2672506
    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,

Accepted Solution

kkarunakar earned 100 total points
ID: 2684937
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..

Expert Comment

ID: 2686139
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

831 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