PDA

Click to See Complete Forum and Search --> : Embeding .OCX/ActiveX on web form


prg.abdullah
Oct 20th, 2008, 02:26 AM
Hi every one,
I've developed a simple ActiveX control which has a button, on clicking the button it shows a messagebox. I used the following html tag to embed it on the html page:

<OBJECT ID="AXctrl" CLASSID="CLSID:84A65F8F-5CB3-4449-B6DF-DD349B677EFB"
CODEBASE="testAX.OCX">
</OBJECT>

I've copied the testAX.OCX in the same location where my html page resides on my server. this active x is running on my machine but it is not running on the other computers, on other machines IE prompts a message saying that:
Windows has blocked this software because it can't verify the publisher
Is there any one who could help me in fixing this problem? actually I'm a biginner in vb.

thanks in advance

regards
Abdullah Baig

louismos
Mar 4th, 2009, 03:33 AM
Hi

Iam having the exact same peoblem. When the ocx is on my local machine, it works fine. When I put it on my Web Server,it does not work.

I have tried to 'register' the activeX control and with Regsvr32 (Not sure this is correct, but it does say successfull). When I look in IE (Tools -> Manage Add-ons) I see the control, but the name is given as 'Project Name.Application' (Compiled using VB6.0 ) so it would look like I need to reference the Subin the control as ProjectName.AppliactionName.Sub, but this does not work. (undefined).

When using it in a Web page that has the ocx on the local machine, I am able to reference the sub by using ApplicationName.Sub

Please help

Thanks
Louis