474,042 Members | 2,319 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "OLESelfRegiste r", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServ er(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="_StockPro ps" 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=m yactivex.ocx
myactivex.inf=m yactivex.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 4985
As I recall from about 7 years ago your ActiveX needs to be marked as
SafeForScriptin g and SafeForInitiali zation (simply 2 keys in the registry)
Try this article
http://support.microsoft.com/kb/161873/EN-US/

George.

"eusebiu" <Ma**********@g mail.comwrote in message
news:11******** **************@ i13g2000prf.goo glegroups.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 "OLESelfRegiste r", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServ er(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="_StockPro ps" 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=m yactivex.ocx
myactivex.inf=m yactivex.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.com wrote:
As I recall from about 7 years ago your ActiveX needs to be marked as
SafeForScriptin g and SafeForInitiali zation (simply 2 keys in the registry)
Try this articlehttp://support.microso ft.com/kb/161873/EN-US/

George.

"eusebiu" <MarcuEuse...@g mail.comwrote in message

news:11******** **************@ i13g2000prf.goo glegroups.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 "OLESelfRegiste r", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServ er(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="_StockPro ps" 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=m yactivex.ocx
myactivex.inf=m yactivex.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 SafeForInitiali zation and
SafeForInitiali zation 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**********@g mail.comwrote in message
news:11******** *************@e 9g2000prf.googl egroups.com...
On Aug 23, 9:28 pm, "George Ter-Saakov" <gt-...@cardone.com wrote:
>As I recall from about 7 years ago your ActiveX needs to be marked as
SafeForScripti ng and SafeForInitiali zation (simply 2 keys in the
registry)
Try this articlehttp://support.microso ft.com/kb/161873/EN-US/

George.

"eusebiu" <MarcuEuse...@g mail.comwrote in message

news:11******* *************** @i13g2000prf.go oglegroups.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 "OLESelfRegiste r", "\0" to activex's
resource
file (.rc) and I have STDAPI DllRegisterServ er(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="_StockPro ps" 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=m yactivex.ocx
myactivex.inf=m yactivex.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 SafeForInitiali zation and
SafeForInitiali zation 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
6034
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 a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
2
13430
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 template and by setting output to a type library (DLL). All the object does is return a string value. At this point I have not checked the option to register for COM interop in Visual Studio So I go into Excel (where I want to use the object). Go to VB...
1
8671
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. In this class is a single public method that returns the string "Hello from C sharp". My VB6 ActiveX DLL references the C# DLL (CSharpProject.dll) using the
2
2101
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 Setup project. Will it register an ActiveX on the target machine or I have to do it manually. SO far I did not have luck installing an application that has an ActiveX control. Iouri
7
2211
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 managed Dll, so that even when things are deployed I don't wanna see two files, but only 1 file which is the dll, and it would contain within it, the other ocx file. Is this possible? If yes, then how can I do something like this, I tried to use...
0
2104
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 Those 3 behavior are driven by one property in visual studio when you
0
1740
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 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...
3
7892
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 as a COM object. Am I right so far? lets say I create a VB6 app and want to use the .NET dll. Does the installer of the VB6 app have to register the .NET dll by calling Regasm or can the VB6 app call it directly the first time it runs.
0
10336
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12131
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11599
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
12005
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
11137
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6827
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5405
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3964
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.