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. C / C++ / MFC
  4. How can I hide the export information of my DLL

How can I hide the export information of my DLL

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 5 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
    Simon W 0
    wrote on last edited by
    #1

    How can I hide the export information of my DLL, such as function name or class name? I am seeking... For what? Why did you ask me for what? I don't know!

    C D T C 4 Replies Last reply
    0
    • S Simon W 0

      How can I hide the export information of my DLL, such as function name or class name? I am seeking... For what? Why did you ask me for what? I don't know!

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      you can't. if you could, nothing could use the DLL... Cleek | Image Toolkits | Thumbnail maker

      1 Reply Last reply
      0
      • S Simon W 0

        How can I hide the export information of my DLL, such as function name or class name? I am seeking... For what? Why did you ask me for what? I don't know!

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Simon.W wrote:

        How can I hide the export information of my DLL, such as function name or class name?

        How about making the names such that only you know what they mean? I know of no other way to "hide" them, however.


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        1 Reply Last reply
        0
        • S Simon W 0

          How can I hide the export information of my DLL, such as function name or class name? I am seeking... For what? Why did you ask me for what? I don't know!

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

          Simon.W wrote:

          How can I hide the export information of my DLL, such as function name or class name?

          Its possible if you writng com.dll, you can remove tlb informatin from COM DLL, which contain the interface information and you can easily ship to end user without revealing any internal working of dll

          1 Reply Last reply
          0
          • S Simon W 0

            How can I hide the export information of my DLL, such as function name or class name? I am seeking... For what? Why did you ask me for what? I don't know!

            C Offline
            C Offline
            cmk
            wrote on last edited by
            #5

            Use a .def file. For each function you export use the NONAME tag. This will cause the function to be exported by ordinal instead of name. This also makes the resulting dll smaller. Exporting c++ functions (and class methods) is a pain as you have to specify the mangled name. If you have to export a number of c++ functions/methods you may want to write a tool to generate the .def from a .map (or other such file) ... and post the tool back here. :) http://msdn2.microsoft.com/en-us/library/hyx1zcd3(VS.80).aspx[^] ...cmk Save the whales - collect the whole set

            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