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

Registering ActiveX Component using code

Hello I have ActiveX DLL and I usually register it using following procedure

1. gactutil -i ActiveXDLL
2. regasm ActiveXDLL /tlb:DLLNAME/codebase
3. then using the activeX

can I automate step 1 and 2 inside ActiveX itself
Nov 17 '05 #1
1 2411
Hi,

First of all, gacutil.exe and regasm.exe don´t work with ActiveX DLLs, but
with .NET assemblies. Some .NET assemblies can be registered as ActiveX
(COM) components using regasm.exe. Said that, you can use the
System.Runtime.InteropServices.ComRegisterFunction and ComUnregisterFunction
attributes (see the docs) to perform custom actions when your assembly is
registered for COM interop using a .NET-aware tool (such as regasm.exe or
some tool built with System.Runtime.InteropServices.RegistrationService s
functions). So, in theory you can install the assembly in the GAC while is
being COM-registered, but I have not tested it.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Raed Sawalha" <Ra*********@discussions.microsoft.com> escribió en el
mensaje news:5B**********************************@microsof t.com...
Hello I have ActiveX DLL and I usually register it using following
procedure

1. gactutil -i ActiveXDLL
2. regasm ActiveXDLL /tlb:DLLNAME/codebase
3. then using the activeX

can I automate step 1 and 2 inside ActiveX itself

Nov 17 '05 #2

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

Similar topics

0
by: David | last post by:
I have my program dynamically register custom ActiveX components when it starts. On the most part, this works great for all my customers, except my own internal ones. Our Win2k computers are locked...
1
by: Mattt | last post by:
Hi, I've run into a rather odd problem. get Methods seem to return values from the wrong methods! For example, let's pretend my activex control stores values about a person. getName would return...
16
by: Catherine Jones | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution Regards and thanks
6
by: Daniel Bass | last post by:
The scenario: ------------- I've created a simple COM object according to a tutorial I found: http://www.csharphelp.com/archives/archive281.html It automatically creates a Type Library...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
1
by: Chris Petchey | last post by:
I have a VB.NET application which installs/updates other applications. Some of these other applications are VB6. Part of the processing includes registering the OCXs and DLLs and I use the...
4
by: | last post by:
Hi, I'm porting a Web site from 32 bit IIS 6 to x64 IIS 6 (Windows Server 2003 x64 R2) and I'm having trouble using an ActiveX object inside an ASP page (old ASP, not ASP.NET). The CreateObject...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
2
by: linuxfedora | last post by:
I have written a C# program which has an activeX control (abc.ocx) in Visual Studio 2005, and used the setup and deployment project to create an setup.exe and setup.msi that act as an installer. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.