DISPID caching in .net

P

Paul DeMarco

There are articles on msdn that indicate the best way (performance and
compatability) to use office automation from out of process applications is
for late binding with DISPID caching, so that you do not have to call the
IDispatch::GetIDsOfNames and only IDispatch::Invoke. However, within .NET
using Type.InvokeMember does not do this, it uses both IDispatch methods.

So the question is, how do I perform DISPID caching (explicitly passing the
DISPID) instead of having .NET determine it on the fly, so that I may utilize
the preferred method of out-of-process automation?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top