Search:
Namespaces
Discussions
.NET v1.1
Feedback
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...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com