Strange DLLs created into program folder

  • Thread starter Thread starter GD1
  • Start date Start date
G

GD1

Dear developers,

I've been working on a Word automator application for some weeks.

Now, I formatted my hard drive and reinstalled Visual Studio. When I
compiled my project for the first time since I've formatted my HDD, I
saw that something was different: three DLLs were created into the
output folder (Interop.Microsoft.Office.Core.dll, Interop.VBIDE.dll,
Interop.Word.dll). I've never seen those DLLs before.

Can you help me understand what's happening?

Thank you in advance...
 
These are the COM dll's that are needed for accesing the office utilities
from your program.

I think there was some option when you added the reference to the office
COM's to create these Interop dll's.

You should be able to confirm this by renaming one of them and trying to run
your program which should then fail because it cannot find the associated
dll.

As to why they are renamed "Interop.???" I have not idea.

Rick
 
I think there was some option when you added the reference to the office
COM's to create these Interop dll's.

There were no particular options.

You should be able to confirm this by renaming one of them and trying to run
your program which should then fail because it cannot find the associated
dll.

Yes, it fails. But, the previous build of my application didn't need
those DLLs. Strange, isn't it?

As to why they are renamed "Interop.???" I have not idea.

Neither I do.
 
Yes, it fails. But, the previous build of my application didn't need
those DLLs. Strange, isn't it?
if you don't need the COM abilities of the office dlls then remove the
reference from your project and recompile. Then you should be able to
delete the Interop dll's

Rick
 
if you don't need the COM abilities of the office dlls then remove the
reference from your project and recompile. Then you should be able to
delete the Interop dll's

Rick

Yes, I know, but the problem is different.

I'm wondering why those DLLs were NOT needed before, and ARE needed
now even if I haven't changed anything in my project. I've just
formatted my system, and when I compiled the project for the first
time I discovered that my program was needing some DLLs it hadn't ever
needed before. Paranormal phenomenon? :)
 
Hi there,

The interop dlls are made when you add a COM reference. There is no
stopping this, maybe you just didn't notice before.

One way to remove dependency alltogether is to use COM automation
manually via CreateObject().

Nick.
 
Back
Top