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. ATL / WTL / STL
  4. DLL Questions

DLL Questions

Scheduled Pinned Locked Moved ATL / WTL / STL
c++csharpvisual-studiocomtutorial
9 Posts 5 Posters 10 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.
  • B Offline
    B Offline
    bkelly13
    wrote on last edited by
    #1

    Windows 10, Visual Studio 2012, C++ I have several utilities to put in a DLL and some questions about how to do it. If the utilities put in a DLL are built without MFC and without ATL, can they be used by those types of projects? Can the products of multiple projects, within a single solution, be put into a single DLL? So far, my limited experience indicates this is not the case. Can Visual Studio show the contents of a DLL? I don’t want a reverse compiler/assembler, I just want to see the signatures of the functions contained by the DLL.

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    Richard Andrew x64R L 2 Replies Last reply
    0
    • B bkelly13

      Windows 10, Visual Studio 2012, C++ I have several utilities to put in a DLL and some questions about how to do it. If the utilities put in a DLL are built without MFC and without ATL, can they be used by those types of projects? Can the products of multiple projects, within a single solution, be put into a single DLL? So far, my limited experience indicates this is not the case. Can Visual Studio show the contents of a DLL? I don’t want a reverse compiler/assembler, I just want to see the signatures of the functions contained by the DLL.

      Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      bkelly13 wrote:

      If the utilities put in a DLL are built without MFC and without ATL, can they be used by those types of projects?

      Yes.

      bkelly13 wrote:

      Can the products of multiple projects, within a single solution, be put into a single DLL?

      Only if you consolidate the source code into a single project.

      bkelly13 wrote:

      I just want to see the signatures of the functions contained by the DLL.

      Only source code or documentation can tell you the function signatures. But the DUMPBIN utility can show you the function names that are exported from the DLL.

      The difficult we do right away... ...the impossible takes slightly longer.

      K 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        bkelly13 wrote:

        If the utilities put in a DLL are built without MFC and without ATL, can they be used by those types of projects?

        Yes.

        bkelly13 wrote:

        Can the products of multiple projects, within a single solution, be put into a single DLL?

        Only if you consolidate the source code into a single project.

        bkelly13 wrote:

        I just want to see the signatures of the functions contained by the DLL.

        Only source code or documentation can tell you the function signatures. But the DUMPBIN utility can show you the function names that are exported from the DLL.

        The difficult we do right away... ...the impossible takes slightly longer.

        K Offline
        K Offline
        Kenneth Haugland
        wrote on last edited by
        #3

        Richard Andrew x64 wrote:

        Only if you consolidate the source code into a single project.

        Havent tried it , but ILMerge should make that possible without consolidate the files into a single project: Download ILMerge from Official Microsoft Download Center[^]

        L 1 Reply Last reply
        0
        • B bkelly13

          Windows 10, Visual Studio 2012, C++ I have several utilities to put in a DLL and some questions about how to do it. If the utilities put in a DLL are built without MFC and without ATL, can they be used by those types of projects? Can the products of multiple projects, within a single solution, be put into a single DLL? So far, my limited experience indicates this is not the case. Can Visual Studio show the contents of a DLL? I don’t want a reverse compiler/assembler, I just want to see the signatures of the functions contained by the DLL.

          Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          1. Yes, MFC/ATL applications can make calls to C++ functions or class methods, and pure C functions. 2. Yes, but you would need a single project for the final DLL. 3. See Decorated Names[^].

          B 1 Reply Last reply
          0
          • K Kenneth Haugland

            Richard Andrew x64 wrote:

            Only if you consolidate the source code into a single project.

            Havent tried it , but ILMerge should make that possible without consolidate the files into a single project: Download ILMerge from Official Microsoft Download Center[^]

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            ILMerge is not relevant for unmanaged code.

            1 Reply Last reply
            0
            • L Lost User

              1. Yes, MFC/ATL applications can make calls to C++ functions or class methods, and pure C functions. 2. Yes, but you would need a single project for the final DLL. 3. See Decorated Names[^].

              B Offline
              B Offline
              bkelly13
              wrote on last edited by
              #6

              1. I expected that and thank you for the confirmation 2. I suppose that is not a big problem, may make for a large project, but that will have to do. 3. I was hoping for something easier, but this also is what it is. Thank you for taking the time to reply.

              Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

              L 1 Reply Last reply
              0
              • B bkelly13

                1. I expected that and thank you for the confirmation 2. I suppose that is not a big problem, may make for a large project, but that will have to do. 3. I was hoping for something easier, but this also is what it is. Thank you for taking the time to reply.

                Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                On point 3 I am sure I once found a tool or some source code (years ago now) that decoded them for you. Try some Google foo.

                J 1 Reply Last reply
                0
                • L Lost User

                  On point 3 I am sure I once found a tool or some source code (years ago now) that decoded them for you. Try some Google foo.

                  J Offline
                  J Offline
                  Jochen Arndt
                  wrote on last edited by
                  #8

                  The Dependency Walker (depends.exe) Home Page[^] can show parameters for functions with C++ decoration.

                  L 1 Reply Last reply
                  0
                  • J Jochen Arndt

                    The Dependency Walker (depends.exe) Home Page[^] can show parameters for functions with C++ decoration.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    :thumbsup:

                    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