473,320 Members | 2,158 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,320 software developers and data experts.

Reference COM DLL without registering

I have a DLL that was compiled from VB6 that I want to reference in a .NET
2.0 C# project.

I can add it as a reference if I first register it using regsvr32

But I want to be able to send the project to other computers (along with a
copy of the DLL) where the DLL is not registered and still have it compile.
But

1. I can't add the DLL as a reference unless it is registered.
2. If I add it and the set its property Isolated to True, it still won't
compile on computers where it is unregistered.

I have read the following links and I still can't figure it if or how this
can be done. Can anyone provide simple instructions to do what I want here?
http://msdn.microsoft.com/library/de...dlldanger1.asp
http://msdn.microsoft.com/library/de...plywithnet.asp
http://msdn.microsoft.com/msdnmag/is...a/default.aspx

May 12 '06 #1
1 4488
It sounds like you're probably aiming to try registration-free COM. If so,
http://msdn.microsoft.com/msdnmag/is...04/RegFreeCOM/ would probably be
the best place to start.
"Dave Booker" <db******@newsgroup.nospam> wrote in message
news:FD**********************************@microsof t.com...
I have a DLL that was compiled from VB6 that I want to reference in a .NET
2.0 C# project.

I can add it as a reference if I first register it using regsvr32

But I want to be able to send the project to other computers (along with a
copy of the DLL) where the DLL is not registered and still have it
compile.
But

1. I can't add the DLL as a reference unless it is registered.
2. If I add it and the set its property Isolated to True, it still won't
compile on computers where it is unregistered.

I have read the following links and I still can't figure it if or how this
can be done. Can anyone provide simple instructions to do what I want
here?
http://msdn.microsoft.com/library/de...dlldanger1.asp
http://msdn.microsoft.com/library/de...plywithnet.asp
http://msdn.microsoft.com/msdnmag/is...a/default.aspx

May 12 '06 #2

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

Similar topics

10
by: Steven T. Hatton | last post by:
Stroustrup says this: http://www.research.att.com/~bs/bs_faq2.html#macro "So, what's wrong with using macros?" "And yes, I do know that there are things known as macros that doesn't...
1
by: peter.jakes | last post by:
Hello, I am straggling with an issue than may not have a solution. I have a windows application that is composed of com components. Normally one registers all components the application uses and...
2
by: Vikas | last post by:
Hello, I am trying to use a COM dll inside my C# application. But my production environment would not allow be register the COM dll. Are there any other options by which I can use a method...
5
by: serge calderara | last post by:
Dear all, I do not see the difference between Referencing an assembliy for use in my project and Register it on a page ? At the end if I want to use assembly functionnality , I need anyway to...
3
by: gaschurman | last post by:
I have a DLL (imagemagick) that I need to use in my site , but the web hosting does not allow me to register the DLL. is there any way to use that DLL refiring to the Path without registering ?...
10
by: Marek Zawadzki | last post by:
Hi all. Is it possible to implement an accurate voting mechanism (think digg.com) that does not require users to sign in before voting? I think for many people registering is pain and thus...
25
by: David Sanders | last post by:
Hi, As part of a simulation program, I have several different model classes, ModelAA, ModelBB, etc., which are all derived from the class BasicModel by inheritance. model to use, for example...
2
by: DR | last post by:
how to reference COM dll from C# without the COM dll being registered in the registry?
5
by: Alan Isaac | last post by:
I have two questions about the "observer pattern" in Python. This is question #1. (I'll put the other is a separate post.) Here is a standard example of the observer pattern in Python:
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.