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 / October 2005

Tip: Looking for answers? Try searching our database.

Producing idl files?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Juan Dent - 17 Oct 2005 23:55 GMT
Hi,

I have some C++ native clients that need to interact with managed assemblies
for which there are existing idl files (these assemblies are migrations from
C++ to C#).
The C++ clients use idl files to build the .tlh and tli files so they can
interact via COM with the assemblies.
Using #import  is unnecessarily large since only one interface is desired.
Also, the interface desired will not change whereas the assembly will thus
producing unnecessary dependencies which will force my C++ clients to
recompile each time the assemblies change even though the interface used by
the clients will never change.

This has prompted me with the question as to if it is possible to generate a
subset of the .tlb, which only includes the desired interface and which is
not sensitive to changes to the assemblies that implemented the interface.

Signature

Thanks in advance,

Juan Dent, M.Sc.

Robert Jordan - 18 Oct 2005 01:23 GMT
Hi,

> I have some C++ native clients that need to interact with managed assemblies
> for which there are existing idl files (these assemblies are migrations from
[quoted text clipped - 10 lines]
> subset of the .tlb, which only includes the desired interface and which is
> not sensitive to changes to the assemblies that implemented the interface.

You can open the TLB generated by RegAsm with OleView.exe and
save the IDL to a file.

Rob
"Peter Huang" [MSFT] - 21 Oct 2005 02:40 GMT
Hi Juan,

Did Robert's suggestion help you?
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


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.