Arthur
September 13th, 2002, 02:49 AM
Hello,
A couple of questions regarding COM interop stuff...
I have a nice piece of software using a couple of COM interop DLLs generated by Visual Studio. I would like to put my Assembly into the GAC and therefore need to sign it with a strong name.
The Visual Studio compiler does not generate signed COM interop DLLs.
My questions are:
1) How can I let Visual Studio make strong named Interop DLL's
2) How can I sign existing DLLs with a strong name? I tried the following:
Adding a Webbrowser control delivers 2 DLLs, namely AxInterop.SHDocVw.dll and Interop.SHDocVw.dll
I tried (following MSDN instructions): al /out:AxInterop.SHDocVw.dll AxInterop.SHDocVw /keyfile:sgKey.snk
the result is -The error importing file AxInterop.SHDocVw - the system cannot find the file specified....
I tried 10.000 other ways as well, but nothing works.
Last question: If I make my own interop dll, with tlbimport, I only get Interop.SHDocVw.dll. I am missing namespaces and other stuff in that case. Does anyone know where VS.NET gets the AxInterop.SHDocVw.dll from?
Greets,
Arthur
A couple of questions regarding COM interop stuff...
I have a nice piece of software using a couple of COM interop DLLs generated by Visual Studio. I would like to put my Assembly into the GAC and therefore need to sign it with a strong name.
The Visual Studio compiler does not generate signed COM interop DLLs.
My questions are:
1) How can I let Visual Studio make strong named Interop DLL's
2) How can I sign existing DLLs with a strong name? I tried the following:
Adding a Webbrowser control delivers 2 DLLs, namely AxInterop.SHDocVw.dll and Interop.SHDocVw.dll
I tried (following MSDN instructions): al /out:AxInterop.SHDocVw.dll AxInterop.SHDocVw /keyfile:sgKey.snk
the result is -The error importing file AxInterop.SHDocVw - the system cannot find the file specified....
I tried 10.000 other ways as well, but nothing works.
Last question: If I make my own interop dll, with tlbimport, I only get Interop.SHDocVw.dll. I am missing namespaces and other stuff in that case. Does anyone know where VS.NET gets the AxInterop.SHDocVw.dll from?
Greets,
Arthur