Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / March 2006

Tip: Looking for answers? Try searching our database.

reference to *.dll vs *.tlb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Achim Domma - 31 Mar 2006 16:34 GMT
Hi,

if I add a reference to a type library in a *.tlb file to my project, I
don't get a extra interop dll. If I add a reference to a *.dll
containing the type library and the com object, I get a interop dll.

Is there a way to compile all my code in one single dll, even when
referencing the COM dll? I want to have only a single dll for deployment.

regards,
Achim
Scott M. - 31 Mar 2006 18:05 GMT
No.  One .dll can only contain compiled code from one architecture.  .NET
assebmlies and COM components use 2 different architectures.

> Hi,
>
[quoted text clipped - 7 lines]
> regards,
> Achim
Achim Domma - 31 Mar 2006 21:21 GMT
> No.  One .dll can only contain compiled code from one architecture.  .NET
> assebmlies and COM components use 2 different architectures.

Yes, that's clear to me. But currently I have 3 dlls:

1. my main dll
2. some interop.xyz.dll
3. dll containing the COM component

3. is out of my control, but I want to have 1. and 2. in one single dll.

regards,
Achim
Scott M. - 31 Mar 2006 23:08 GMT
If you could find a way to de-compile the IntrerOp .dll and then put that
code in .dll #1, I suppose you could, but I don't think you can do this.

>> No.  One .dll can only contain compiled code from one architecture.  .NET
>> assebmlies and COM components use 2 different architectures.
[quoted text clipped - 9 lines]
> regards,
> Achim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.