473,395 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ActiveX Self register

Hello... I am developing a MFC ActiveX that I want to self register
when IE promts to Install it.

I have added the VALUE "OLESelfRegister", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServer(void) method in my
code.
When I build my ActiveX project, the ActiveX is registered fine and
it
work on my machine. If I added to a .cab file(cabarc -s 6144 N
myactivex.cab myactivex.ocx myactivex.inf myactivex) and then sign
it(signtool sign /a myactivex.cab) and I try to display the page from
OTHER machine in my local network, I get a dialog that is asking me
if
I want to install it or not.I click install but the ActiveX is not
displayed.
The object tag is :
object id="MyActiveX1" width="655" height="347" codebase='../../
Applets/myactivex.cab'
classid="CLSID:069B70F6-47F4-4b0a-
B08D-73A9F2F2EB36">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1323">
<param name="_StockProps" value="0">
<span style="color: Red; font:
18">ActiveX control failed to load! (Use Internet Explorer
only!)
<br />
Please check browser security
settings.</span>
</objectand the inf file is :
[Add.Code]
myactivex.ocx=myactivex.ocx
myactivex.inf=myactivex.inf
[myactivex.ocx]
file-win32-x86=thiscab
clsid={069B70F6-47F4-4b0a-B08D-73A9F2F2EB36}
RegisterServer=yes
FileVersion=1,0,0,1
[myactivex.inf]
file-win32-x86=thiscab
I am forgeting something?
Thanks!

Aug 23 '07 #1
3 4959
As I recall from about 7 years ago your ActiveX needs to be marked as
SafeForScripting and SafeForInitialization (simply 2 keys in the registry)
Try this article
http://support.microsoft.com/kb/161873/EN-US/

George.

"eusebiu" <Ma**********@gmail.comwrote in message
news:11**********************@i13g2000prf.googlegr oups.com...
Hello... I am developing a MFC ActiveX that I want to self register
when IE promts to Install it.

I have added the VALUE "OLESelfRegister", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServer(void) method in my
code.
When I build my ActiveX project, the ActiveX is registered fine and
it
work on my machine. If I added to a .cab file(cabarc -s 6144 N
myactivex.cab myactivex.ocx myactivex.inf myactivex) and then sign
it(signtool sign /a myactivex.cab) and I try to display the page from
OTHER machine in my local network, I get a dialog that is asking me
if
I want to install it or not.I click install but the ActiveX is not
displayed.
The object tag is :
object id="MyActiveX1" width="655" height="347" codebase='../../
Applets/myactivex.cab'
classid="CLSID:069B70F6-47F4-4b0a-
B08D-73A9F2F2EB36">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1323">
<param name="_StockProps" value="0">
<span style="color: Red; font:
18">ActiveX control failed to load! (Use Internet Explorer
only!)
<br />
Please check browser security
settings.</span>
</objectand the inf file is :
[Add.Code]
myactivex.ocx=myactivex.ocx
myactivex.inf=myactivex.inf
[myactivex.ocx]
file-win32-x86=thiscab
clsid={069B70F6-47F4-4b0a-B08D-73A9F2F2EB36}
RegisterServer=yes
FileVersion=1,0,0,1
[myactivex.inf]
file-win32-x86=thiscab
I am forgeting something?
Thanks!

Aug 23 '07 #2
On Aug 23, 9:28 pm, "George Ter-Saakov" <gt-...@cardone.comwrote:
As I recall from about 7 years ago your ActiveX needs to be marked as
SafeForScripting and SafeForInitialization (simply 2 keys in the registry)
Try this articlehttp://support.microsoft.com/kb/161873/EN-US/

George.

"eusebiu" <MarcuEuse...@gmail.comwrote in message

news:11**********************@i13g2000prf.googlegr oups.com...
Hello... I am developing a MFC ActiveX that I want to self register
when IE promts to Install it.
I have added the VALUE "OLESelfRegister", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServer(void) method in my
code.
When I build my ActiveX project, the ActiveX is registered fine and
it
work on my machine. If I added to a .cab file(cabarc -s 6144 N
myactivex.cab myactivex.ocx myactivex.inf myactivex) and then sign
it(signtool sign /a myactivex.cab) and I try to display the page from
OTHER machine in my local network, I get a dialog that is asking me
if
I want to install it or not.I click install but the ActiveX is not
displayed.
The object tag is :
object id="MyActiveX1" width="655" height="347" codebase='../../
Applets/myactivex.cab'
classid="CLSID:069B70F6-47F4-4b0a-
B08D-73A9F2F2EB36">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1323">
<param name="_StockProps" value="0">
<span style="color: Red; font:
18">ActiveX control failed to load! (Use Internet Explorer
only!)
<br />
Please check browser security
settings.</span>
</objectand the inf file is :
[Add.Code]
myactivex.ocx=myactivex.ocx
myactivex.inf=myactivex.inf
[myactivex.ocx]
file-win32-x86=thiscab
clsid={069B70F6-47F4-4b0a-B08D-73A9F2F2EB36}
RegisterServer=yes
FileVersion=1,0,0,1
[myactivex.inf]
file-win32-x86=thiscab
I am forgeting something?
Thanks!- Hide quoted text -

- Show quoted text -
Thanks for your answer...
I;ve marked the ActiveX SafeForInitialization and
SafeForInitialization but it isn't work... :(

Aug 23 '07 #3
For security reasons, inspite of the object safety interfaces, you will
always get a security prompt. I know of no way to override that. ActiveX
controls can't simply install themselves on the end-user system without
their knowledge.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"eusebiu" <Ma**********@gmail.comwrote in message
news:11*********************@e9g2000prf.googlegrou ps.com...
On Aug 23, 9:28 pm, "George Ter-Saakov" <gt-...@cardone.comwrote:
>As I recall from about 7 years ago your ActiveX needs to be marked as
SafeForScripting and SafeForInitialization (simply 2 keys in the
registry)
Try this articlehttp://support.microsoft.com/kb/161873/EN-US/

George.

"eusebiu" <MarcuEuse...@gmail.comwrote in message

news:11**********************@i13g2000prf.googleg roups.com...
Hello... I am developing a MFC ActiveX that I want to self register
when IE promts to Install it.
I have added the VALUE "OLESelfRegister", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServer(void) method in my
code.
When I build my ActiveX project, the ActiveX is registered fine and
it
work on my machine. If I added to a .cab file(cabarc -s 6144 N
myactivex.cab myactivex.ocx myactivex.inf myactivex) and then sign
it(signtool sign /a myactivex.cab) and I try to display the page from
OTHER machine in my local network, I get a dialog that is asking me
if
I want to install it or not.I click install but the ActiveX is not
displayed.
The object tag is :
object id="MyActiveX1" width="655" height="347" codebase='../../
Applets/myactivex.cab'
classid="CLSID:069B70F6-47F4-4b0a-
B08D-73A9F2F2EB36">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1323">
<param name="_StockProps" value="0">
<span style="color: Red; font:
18">ActiveX control failed to load! (Use Internet Explorer
only!)
<br />
Please check browser security
settings.</span>
</objectand the inf file is :
[Add.Code]
myactivex.ocx=myactivex.ocx
myactivex.inf=myactivex.inf
[myactivex.ocx]
file-win32-x86=thiscab
clsid={069B70F6-47F4-4b0a-B08D-73A9F2F2EB36}
RegisterServer=yes
FileVersion=1,0,0,1
[myactivex.inf]
file-win32-x86=thiscab
I am forgeting something?
Thanks!- Hide quoted text -

- Show quoted text -

Thanks for your answer...
I;ve marked the ActiveX SafeForInitialization and
SafeForInitialization but it isn't work... :(

Aug 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is...
2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
1
by: Craig | last post by:
I am having problems getting an ActiveX DLL written in VB6 to call a method in a C# class library component. My C# DLL is called CSharpProject.dll and contains a public class called CSharpClass....
2
by: Iouri | last post by:
Hi, How can I create a setup project for the VS2005 application that has an ActiveX control? I added an ActiveX control to the local folder (set CopyLocal property to True) and then created the...
7
by: Khaled Hussein | last post by:
Hi Every body, I am currently working in aproject where I am stuck in merging an ActiveX control (*.ocx) file into a managed Class Library (*.dll). I want to hide the ActiveX Control in this...
0
by: vml | last post by:
Hello, I am trying to mograte from vb 6 to python. I have a very usefull AX control. It can be : -just a bitmap -an active picture where you can plot data and put cursors -a data explorer ...
0
by: eusebiu | last post by:
Hello... I am developing a MFC ActiveX that I want to self register when IE promts to Install it. I have added the VALUE "OLESelfRegister", "\0" to activex's resource file (.rc) and I have...
3
by: Lou | last post by:
I know I can make an ActiveX dll in .NET and it uses interop. So I end up with 2 files, the .dll and the interop file. I also know I need to use Regasm or something like that to register the .dll...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.