Home All Groups Group Topic Archive Search About

Insert ActiveX into HTML

Author
9 Oct 2005 2:58 AM
simondex
Hi, Everyone!

I have developed an activeX control in VB6 and compiled it to ocx.
Using Frontpage, I have inserted the control into my web page. I tried
loading the page on my computer, and it correctly showed the activeX
which I have developed. The activeX did not load on the other computers
(other than mine).

How do I get around this obstacle?

Author
9 Oct 2005 1:45 PM
Ralph
<simon***@yahoo.com> wrote in message
news:1128826695.422791.292850@f14g2000cwb.googlegroups.com...
> Hi, Everyone!
>
> I have developed an activeX control in VB6 and compiled it to ocx.
> Using Frontpage, I have inserted the control into my web page. I tried
> loading the page on my computer, and it correctly showed the activeX
> which I have developed. The activeX did not load on the other computers
> (other than mine).
>
> How do I get around this obstacle?
>

Depends on how it is failing to load and what computers.
Most PCs have security prohibitions against allowing un-signed ActiveX
components to be loaded. (I certainly do.) It will likely only work with IE
and a Windows platform only, so what browser, O/S, are they using?
Author
20 Oct 2005 12:58 AM
Andrew D. Newbould
In message <pr2dnYU2A70lg9TeRVn***@arkansas.net>, Ralph
<nt_consultin***@yahoo.com> writes
Show quoteHide quote
>
><simon***@yahoo.com> wrote in message
>news:1128826695.422791.292850@f14g2000cwb.googlegroups.com...
>> Hi, Everyone!
>>
>> I have developed an activeX control in VB6 and compiled it to ocx.
>> Using Frontpage, I have inserted the control into my web page. I tried
>> loading the page on my computer, and it correctly showed the activeX
>> which I have developed. The activeX did not load on the other computers
>> (other than mine).
>>
>> How do I get around this obstacle?
>>
>
>Depends on how it is failing to load and what computers.
>Most PCs have security prohibitions against allowing un-signed ActiveX
>components to be loaded. (I certainly do.) It will likely only work with IE
>and a Windows platform only, so what browser, O/S, are they using?
>

The main thing you must do in order to make this work properly on other
PC's is to implement the iObjectSafty interface and the return values to
"Safe For Scripting" and "Safe To Initializse".

If you have built the control correctly there should be no need to
install VB6 as someone else suggested. You MUST however make sure your
little install package for the control includes any dependancies
required by it. Failing to do so is the common cause for failure.

--
Andrew D. Newbould                  E-Mail:  newsgroups@NOSPAMzadsoft.com

ZAD Software Systems                Web   :  www.zadsoft.com
Author
11 Oct 2005 3:31 PM
Tony Spratt
> Hi, Everyone!
>
> I have developed an activeX control in VB6 and compiled it to ocx.
> Using Frontpage, I have inserted the control into my web page. I tried
> loading the page on my computer, and it correctly showed the activeX
> which I have developed. The activeX did not load on the other computers
> (other than mine).
>
> How do I get around this obstacle?

I had exactly the same problem a few years ago. What I found was that
installing a copy of VB6 (the full IDE) on a test machine (I deleted it
straight after the test - honest) solved the problem. Looking further into
it, it seems that the problem was a data access component (it may have been
RDO) was not installing from the codebase to the client PCs and was shafting
the whole control.

To see if you have a similar problem, it might be worth creating a new
ActiveX control using only the standard (i.e. default) VB components (say, a
text box and a button) and seeing how that loads on other machines.

If that is the problem, I'm afraid I never got to the very bottom of a fix
as I just gave up and rewrote the application in .ASP with ADO. It was worth
the learning process too - especially these days very few people will allow
ActiveX controls into their browsers.

Cheers,

Tony.