.NETGURU
newbie: confused about interop
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.interop.

Post a new message to this list...

Andy Fish
Hi, I am just trying to find my way in interop and I just need a pointer as
to what I should be doing.

Reading the documentation tells me I need to use "tlbimp" to create an
interop DLL. However, when I do "add reference" and select the COM tab, I
can something fom the list (in this instance, "Microsoft Word 11 Object
Library"), and I can just use the com object straight away.

Am I using com interop by doing this? Is it running tlbimp automatically for
me?

Also I have heard about Primary Interop Assemblies but I don't see how they
fit into the picture.

As a final question, if there are various different ways of accessing word
from a .net application, which is the preferred one

many thanks

Andy

Reply to this message...
 
    
Thomas Fisher
> Is it running tlbimp automatically for me?

Yes.

Reply to this message...
 
    
Andy Fish
"Thomas Fisher" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

thanks for the reply, but I'm still confused. I have found this blog entry:

http://blogs.msdn.com/eric_carter/archive/2004/08/18/216838.aspx

which seems to state that when I select "Microsoft Word 11 Object Library"
from the list of com objects, I am actually selecting the PIA I presume I
would normally select a PIA from the ".Net" tab of the references dialog
(since it is already a .net assembly) so maybe there is some extra magic
going on behind the scenes.

If I look in the '.Net' tab there is an item called 'office' but there isn't
one called 'word'

Reply to this message...
 
    
Lars-Erik Aabech
See the last part of this doc. for info on the assemblies shown in the "Add
references" dialog
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskAddingRemovingReferences.asp

If you'd like to dive into possible explanations for your other question, I
suggest starting here ;)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp

HTH,
Lars-Erik

"Andy Fish" <Click here to reveal e-mail address> wrote in message
news:%Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification