473,387 Members | 1,882 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,387 software developers and data experts.

MFC 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 22 '07 #1
0 1709

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 ...
3
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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,...

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.