CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Location
    Leiden, the Netherlands
    Posts
    116

    COM Interop DLLs and Strong Names

    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

  2. #2
    Join Date
    May 2002
    Posts
    121

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured