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. COM
  4. Removing the type library from a DLL

Removing the type library from a DLL

Scheduled Pinned Locked Moved COM
question
6 Posts 3 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.
  • S Offline
    S Offline
    Shutter
    wrote on last edited by
    #1

    I'm working on a plugin system, however I do not want end users to be able to discover what interfaces/coclasses I have implimented in the plugin DLLs. If I remove the type library from the DLL's resources, will the plugged-into app still function correctly as long as it knows the definitions of the plugins' interfaces at compile-time? If the plugin DLL does NOT contain a type library in itself, will the app and plugin still function properly?

    F 1 Reply Last reply
    0
    • S Shutter

      I'm working on a plugin system, however I do not want end users to be able to discover what interfaces/coclasses I have implimented in the plugin DLLs. If I remove the type library from the DLL's resources, will the plugged-into app still function correctly as long as it knows the definitions of the plugins' interfaces at compile-time? If the plugin DLL does NOT contain a type library in itself, will the app and plugin still function properly?

      F Offline
      F Offline
      FearlessBurner
      wrote on last edited by
      #2

      The type library in the resources is just included for convenience so that other programmers can view the COM interfaces etc. but does not directly affect the actual interfaces implemented. If you remove this information from the DLLs resource (comment out the lines in the .rc file), the actual interfaces will still function normally.

      S T 2 Replies Last reply
      0
      • F FearlessBurner

        The type library in the resources is just included for convenience so that other programmers can view the COM interfaces etc. but does not directly affect the actual interfaces implemented. If you remove this information from the DLLs resource (comment out the lines in the .rc file), the actual interfaces will still function normally.

        S Offline
        S Offline
        Shutter
        wrote on last edited by
        #3

        Thanks :)

        1 Reply Last reply
        0
        • F FearlessBurner

          The type library in the resources is just included for convenience so that other programmers can view the COM interfaces etc. but does not directly affect the actual interfaces implemented. If you remove this information from the DLLs resource (comment out the lines in the .rc file), the actual interfaces will still function normally.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          I know this very stupid Question ,just want to know which line to comment out in RC File. Thanks


          "I Think this Will Help"  Alok Gupta
           visit me at http://www.thisisalok.tk

          F 1 Reply Last reply
          0
          • T ThatsAlok

            I know this very stupid Question ,just want to know which line to comment out in RC File. Thanks


            "I Think this Will Help"  Alok Gupta
             visit me at http://www.thisisalok.tk

            F Offline
            F Offline
            FearlessBurner
            wrote on last edited by
            #5

            Near the bottom of the .rc file, you will see a line like this: 1 TYPELIB "myproject.tlb" If you comment out this line, then the type libary will not be included (assuming that APSTUDIO_INVOKED has not been defined). If APSTUDIO_INVOKED has been defined, then you will need to comment out the TEXTINCLUDE section higher up in the .rc file which contain a similar TYPELIB line.

            T 1 Reply Last reply
            0
            • F FearlessBurner

              Near the bottom of the .rc file, you will see a line like this: 1 TYPELIB "myproject.tlb" If you comment out this line, then the type libary will not be included (assuming that APSTUDIO_INVOKED has not been defined). If APSTUDIO_INVOKED has been defined, then you will need to comment out the TEXTINCLUDE section higher up in the .rc file which contain a similar TYPELIB line.

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              Thanks Sir! I got it!! Thanks Once Again


              "I Think this Will Help" Alok Gupta
              visit me at http://www.thisisalok.tk

              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