473,666 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

register COM-DLL from code

Hi all ...

Does anyone know if it is possible to register a COM-DLL through code using
statements of the .NET framework (VB.NET or C#) without using the
command-line or shell or anything?

Greetz,

--
Stijn Lambert
Analyst-Designer
Real Software Group
Industry Division
Prins Boudewijnlaan 26 B-2550 KONTICH
http://www.realsoftwaregroup.com

Jul 19 '05 #1
3 14366
yes, use p-invoke to call the DllRegisterServ er() API in the com dll.
On Mon, 30 Jun 2003 17:51:36 +0200, "Stijn Lambert"
<st********@hot mail.com> wrote:
Hi all ...

Does anyone know if it is possible to register a COM-DLL through code using
statements of the .NET framework (VB.NET or C#) without using the
command-line or shell or anything?

Greetz,


Jul 19 '05 #2
Stijn,
Does anyone know if it is possible to register a COM-DLL through code using
statements of the .NET framework (VB.NET or C#) without using the
command-line or shell or anything?


Have a look at
http://www.msjogren.net/dotnet/eng/s...dynpinvoke.asp

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Jul 19 '05 #3
guest
25 New Member
Can anyone tell me how to do this ( register dll com componenet in C# ) ?
Please I need help urgent.

yes, use p-invoke to call the DllRegisterServ er() API in the com dll.


On Mon, 30 Mar 2006 17:51:36 +0200, "Stijn Lambert"
<stijnie007@hot mail.com> wrote:
[color=blue]
>Hi all ...
>
>Does anyone know if it is possible to register a COM-DLL through code using
>statements of the .NET framework (VB.NET or C#) without using the
>command-line or shell or anything?
>
>Greetz,[/color]
May 15 '06 #4

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

Similar topics

2
4279
by: Robert M. | last post by:
Information: Server A: SQL Server 2000 Enterprise Edition. OS is Windows 2003 Server Enterprise Edition. SQL Service pack is 3a. Member of domain ABCDomain. Server A is going to function as a Distributor. Location: New York. Server B: SQL Server 2000 Enterprise Edition. OS is Windows 2003 Server Standard Edition. SQL Service pack is 3a. Member of domain ABCDomain. Server B is going to function as a Subscriber.
12
2236
by: Ioannis Vranos | last post by:
Just some thought on it, wanting to see any explanations. It was advised in this newsgroups that we should avoid the use of keyword register. However it is a language feature, and if it offers no help to an implementation, it is free to ignore it. And this happens widely, all my C++ compilers in my platform ignore this keyword.
2
2068
by: Alexander Eisenhuth | last post by:
Hello together, My system: ActivePython 2.4.1 Windows XP I write a COM Server in VC++ 6.0 using ATL. So far so good. While I develop I got sometimes strange behaviour with makepy utility. Today again. :-(
10
15653
by: ajay | last post by:
some say floats can't be stored in register. size of int and float are same ( on some machine am i Wrong?) so if int can be delcared as register than why not float(where in and float are of same size) ? tx Ajay
9
1491
by: silentlights | last post by:
HI, How could I handle groups of registers in a single function by passing the address of the registers to the functions as parameters..? I am trying something like.. typedef volatile struct st_sci * SPORT; SPORT getPort(char port); SPORT getPort(char PORTNAME)
16
3745
by: alakesh.haloi | last post by:
Hi All Is there a limit on the number of register variables that can be declared and initialized in a C program on a particular hardware platform? If you define more number of register variables than the processor has, how is it handled by the C compiler? regards
0
4303
by: irfan | last post by:
You could follow ms- help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconservicedcomponen toverview.htm thatz the .NET help or search for the same within msdn.microsoft.com
3
5710
by: Kondapanaidu | last post by:
Hi, I am using C#.NET1.1, How to register COM Dlls in C#.NET through coding. One way for this is P-Invoke but I am not sure whether its correct or not and also I am not sure how to use this one. Any body have idea please give the Inputs.
2
2768
by: Geoffrey | last post by:
Hello, I create a COM object in c# to use some new functionnality in old softawre. On my dev platform, I register the component on build (option register for com interop) On production platform (tested with a Win98), I register the COM object with regasm. I see on the registry, that the component is installed (like on my dev pc : guid, ....).
26
2219
by: Vashna | last post by:
Hi Group, I have a doubt about register variables. I know that if we have a variable used very frequently in a function, then provided we never apply the & function to it, we can define it as a register variable and this will make it much faster to access. Now the question is: obviously there are only a fixed number of registers in our CPU, maybe 6 or something. So how do we choose which
0
8448
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
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
8871
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
7387
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2773
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
1776
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.