Domanda

When I add a reference (Common properties, framework and references, add new reference) to Microsoft internet controls/SHDocVw.dll and compile the project, a new file is created in the release folder of the project. The file (Interop.SHDocVw.1.1.dll) needs to be in the same folder as the program for it to run.

How do I make my program use the SHDocVw.dll located in system32 instead of the Interop.SHDocVw.1.1.dll in my programs folder?

È stato utile?

Soluzione

A primary interop assembly is not used instead of the native DLL, it's a .NET binding layer that loads the native DLL. The Windows DLL is still doing all the hard work.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top