Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Global method for a COM server DLL

Global method for a COM server DLL

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpc++htmlcomsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rei Miyasaka
    wrote on last edited by
    #1

    Hi, I'm trying to implement an MS-IME dictionary in C#. According to the documentation here[^], I need to make a method called CreateIImeActiveDictInstance that MS-IME will hunt down and call. Problem is, I can't think of a way to make a global method in C#. I do know that MSIL is capable of global methods. If I can, I want to avoid having to write it in C++. Any ideas? Thanks in advance.

    M 1 Reply Last reply
    0
    • R Rei Miyasaka

      Hi, I'm trying to implement an MS-IME dictionary in C#. According to the documentation here[^], I need to make a method called CreateIImeActiveDictInstance that MS-IME will hunt down and call. Problem is, I can't think of a way to make a global method in C#. I do know that MSIL is capable of global methods. If I can, I want to avoid having to write it in C++. Any ideas? Thanks in advance.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      There's no way to do this in C#. As you say, MSIL supports it, so it would be possible to write a small piece of MSIL that implements the required method. From there, you would need to make a single DLL; either disassembling the C# code with ILDASM then building the disassembled code plus the new MSIL file with ILASM, or if you're targetting .NET 2.0, using Visual C++'s link.exe. See this topic[^] for more. You could also use a small piece of C++/CLI or Managed C++ code to do this. Again, you'd have to either disassemble/reassemble or use the VC++ 2005 linker. Stability. What an interesting concept. -- Chris Maunder

      R 1 Reply Last reply
      0
      • M Mike Dimmick

        There's no way to do this in C#. As you say, MSIL supports it, so it would be possible to write a small piece of MSIL that implements the required method. From there, you would need to make a single DLL; either disassembling the C# code with ILDASM then building the disassembled code plus the new MSIL file with ILASM, or if you're targetting .NET 2.0, using Visual C++'s link.exe. See this topic[^] for more. You could also use a small piece of C++/CLI or Managed C++ code to do this. Again, you'd have to either disassemble/reassemble or use the VC++ 2005 linker. Stability. What an interesting concept. -- Chris Maunder

        R Offline
        R Offline
        Rei Miyasaka
        wrote on last edited by
        #3

        Ahh, okay. Thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups