473,387 Members | 1,834 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.

COM dlls using without registering



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 inside this COM
dll without actually registering it using regsvr32?

The consumer of the application is a C# .aspx page.

Thanks,
Vikas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
2 2414
Are there any other options by which I can use a method inside this COM
dll without actually registering it using regsvr32?


If the OS supports it (XP and later) you may be able to provide a
side-by-side manifest instead. See

http://msdn.microsoft.com/library/en...activation.asp

http://msdn.microsoft.com/library/en...assemblies.asp

I'm not sure if this can be configured to work with ASP.NET though.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 15 '05 #2
In principle I think you could do it using PInvoke to load the Dll, find the
CoGetClassObject entry point, call that to get an interface pointer, etc,
etc, (i.e. all the stuff that COM does for you if the Dll is registered).
This would probably be much easier with a C++ wrapper containing a mixture
of managed and unmanaged code, though.

Tony Jinks
to**@cleopatra.co.uk

"Vikas" <vi*******@yahoo.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...


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 inside this COM
dll without actually registering it using regsvr32?

The consumer of the application is a C# .aspx page.

Thanks,
Vikas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #3

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

Similar topics

2
by: mtpollack | last post by:
Hi, I have an application that depends, for successful deployment, on a COM dll that needs to be registered on the user's machine. How do I include te registration of this dll in my setup...
1
by: Kelly G. | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution. Here is the complete issue: I building a MSI using Vs.net ,One of the Dll's is Vb Component ( A shim...
3
by: SAM | last post by:
Hi everyone, I consider myself a very competent programmer when it comes to actual programming and analyzing the business that I'm modelling. I am now crossing into what I would consider Access...
2
by: Shiraz | last post by:
Hi I just made an installer for an application that uses two external COM dlls. On the surface, everything seems to be running smoothly and the the application runs without any errors. However,...
2
by: fig000 | last post by:
Hi everyone, I recently wrote a vb.net app which includes some crystal reports. The user has very little money in their budget and have been without a working application for quite a while. This...
3
by: gopal | last post by:
I am developing an application in CSharp - windows forms based, which copies the DLLs both unmanaged and managed DLLs from a shared folder and will overwrite the existing versions of managed &...
3
by: MattMenard | last post by:
I'm still a bit of a newbie so bear with me. We've developed some DLL's in VC 2003. We're going to be moving these dlls between numerous systems and was wondering what the best way to determine if...
9
by: Sundar | last post by:
Hi, i am trying to make an application that will require registering of quite a few dlls and execute. Now one of the first bottlenecks that my mentor refused is allocation of memory or the usage...
1
by: samercontrol | last post by:
i have two problems 1-moving files between servers or downloading file to your site root(ASP). 2-registering dll or ocx at server without getting the no permission problem.
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
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,...
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...

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.