473,503 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to register COM Dlls in C#



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.

Thanks in advance.

regards
Kondapanaidu

*** Sent via Developersdex http://www.developersdex.com ***
May 30 '06 #1
3 5702
If you need to use COM-object from C#, then simply Add Reference
to the COM-server library to your project.

--
Best regards,

Oleg Subachev

"Kondapanaidu" <kondapanaidu> wrote in message
news:OR**************@TK2MSFTNGP04.phx.gbl...


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.

Thanks in advance.

regards
Kondapanaidu

*** Sent via Developersdex http://www.developersdex.com ***

May 30 '06 #2
Kondapanaidu,

You can call the RegisterTypeLib API function through the P/Invoke layer
to register a COM dll.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Kondapanaidu" <kondapanaidu> wrote in message
news:OR**************@TK2MSFTNGP04.phx.gbl...


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.

Thanks in advance.

regards
Kondapanaidu

*** Sent via Developersdex http://www.developersdex.com ***

May 30 '06 #3

Hi,
Nicholas Paldino

Can you send the corresponding code for this Dll registry.
Its a lots of help for me.
Thanks
Kondapanaidu
*** Sent via Developersdex http://www.developersdex.com ***
May 31 '06 #4

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

Similar topics

4
2252
by: MC | last post by:
Hi I have decided cause I am fed up of re-creating code that does the same thing over and over again for various websites, I thought i'd try to write a DLL and have done so in Visual Studio 2005...
5
2924
by: Adam McKee | last post by:
We are using Visual Studio.NET 2003 in our project with .NET framework 1.1. One of our libraries is a mixed-mode dll assembly consisting of one managed C++ library, and several unmanaged C++...
1
3502
by: Mack | last post by:
Howdy, I have recently converted my project from VC++6 to VS.Net 2003 VS7.1, and now, It won't register. when running regsvr32 I get: LoadLibrary failed - the specified module could not be...
3
3333
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
0
1459
by: The Other Bill | last post by:
Hi -- I'm trying to deploy a VB.NET application that references COM dlls. When I add the dlls to my deployment project the Register property of these files defaults to COMSelfReg. Does this mean I...
2
1321
by: Jan Eliasen | last post by:
Hi I have programmed an "Visual Basic Projects" => "Class Library" in VB.NET and it compiles just fine. When I try to run regsvr32 filename.dll I get an error; bizhdapppreprocessor.dll was...
7
6449
by: Roby Eisenbraun Martins | last post by:
Hi, I'm trying to register my Dlls in the client machine without using any deployment package. I tried copying all the files and Dlls to a specified folder and run, but then the application...
4
13671
by: Philip Wagenaar | last post by:
I am trying to create a vb6 activeX dll in .Net. I used the upgrade wizard in vs.net to load my vb6 project and it converted it to vb.net. Now I know that I have to register the DLL from COM...
1
4139
by: Billingsley | last post by:
I have a folder in a website that contains a lot of VB6 DLLs that I want registered. What are some ways to go about this so I can CreateObjects from these DLLs? Registering them with regsvr32 is...
0
7192
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
7261
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,...
1
6974
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
7445
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
5559
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,...
1
4991
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...
0
4665
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...
0
1492
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 ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.