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. Where is call for DLL within VisStu 6.0 C++

Where is call for DLL within VisStu 6.0 C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiodesignregex
5 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
    Robert Palma Jr
    wrote on last edited by
    #1

    Hi, I am working with tool set template (C++ code for Vis.Stu. 6.0). I will pattern my own code after this template. The template calls a DLL. In the past when I have called DLLs from my code I have used the: LoadLibrary(something.DLL); But I can't find anywhere in the project's code (all the .cpp. .h .c files) where the DLL is loaded. When I compile the app everything wokes fine so the DLL is working. Also, when I do a text search on the project directory, I do indeed find the DLL in the files: .ilk .plg .dsp .pdb and the .exe I just can't dinf, within the Visual Studio user interface, where the DLL is declared/called/loaded. Many thanks, Robert :-)

    Richard Andrew x64R 1 Reply Last reply
    0
    • R Robert Palma Jr

      Hi, I am working with tool set template (C++ code for Vis.Stu. 6.0). I will pattern my own code after this template. The template calls a DLL. In the past when I have called DLLs from my code I have used the: LoadLibrary(something.DLL); But I can't find anywhere in the project's code (all the .cpp. .h .c files) where the DLL is loaded. When I compile the app everything wokes fine so the DLL is working. Also, when I do a text search on the project directory, I do indeed find the DLL in the files: .ilk .plg .dsp .pdb and the .exe I just can't dinf, within the Visual Studio user interface, where the DLL is declared/called/loaded. Many thanks, Robert :-)

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

      Is it possible that the DLL is statically linked to the application at the compile stage, and not dynamically loaded with a call to LoadLibrary? Look in the project's Properties dialog box and see if the DLL lib file is listed as a dependency.

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

        Is it possible that the DLL is statically linked to the application at the compile stage, and not dynamically loaded with a call to LoadLibrary? Look in the project's Properties dialog box and see if the DLL lib file is listed as a dependency.

        R Offline
        R Offline
        Robert Palma Jr
        wrote on last edited by
        #3

        Troposphere, Many thanks for reply/answer. Indeed you are correct: In Project Settings | PreLink Tab: The something.DLL is copied from a source location into the Debug dir. In Project Settings | Link Tab: the something.LIB file is referenced. I am a bit unclear :-( on the difference between the .LIB and the .DLL Thanks again, Robert :)

        Richard Andrew x64R 1 Reply Last reply
        0
        • R Robert Palma Jr

          Troposphere, Many thanks for reply/answer. Indeed you are correct: In Project Settings | PreLink Tab: The something.DLL is copied from a source location into the Debug dir. In Project Settings | Link Tab: the something.LIB file is referenced. I am a bit unclear :-( on the difference between the .LIB and the .DLL Thanks again, Robert :)

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

          Basically, when a DLL is linked at compile-time by using the LIB, this embeds information into the EXE file that Windows uses to automatically load the DLL when the process first begins. So in effect, Windows is calling "LoadLibrary" for you. There is an excellent explanation on the difference between compile-time linking and dynamic linking in the MSDN library, if you look under "Dlls". Hope this helps, Rich

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

            Basically, when a DLL is linked at compile-time by using the LIB, this embeds information into the EXE file that Windows uses to automatically load the DLL when the process first begins. So in effect, Windows is calling "LoadLibrary" for you. There is an excellent explanation on the difference between compile-time linking and dynamic linking in the MSDN library, if you look under "Dlls". Hope this helps, Rich

            R Offline
            R Offline
            Robert Palma Jr
            wrote on last edited by
            #5

            Thanks Rich :)

            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