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. Can someone show me an example of including a DLL or function in a C program ?

Can someone show me an example of including a DLL or function in a C program ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 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.
  • M Offline
    M Offline
    m3mb3r
    wrote on last edited by
    #1

    How does one know which Dll and Functions to include in the program ?

    L L 3 Replies Last reply
    0
    • M m3mb3r

      How does one know which Dll and Functions to include in the program ?

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

      Hi, Your question is unclear. If you are missing some dependencies then you can use Dependency Walker[^] to get the list. You can also use DUMPBIN[^] to get a list of dependencies. Best Wishes, -David Delaune

      1 Reply Last reply
      0
      • M m3mb3r

        How does one know which Dll and Functions to include in the program ?

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

        You know which functions to add by deciding what your code needs to do and studying the documentation for those features. The documentation will also show which DLL contains which functions. If you are talking about the C library then see C Run-Time Library Reference[^].

        1 Reply Last reply
        0
        • M m3mb3r

          How does one know which Dll and Functions to include in the program ?

          L Offline
          L Offline
          leon de boer
          wrote on last edited by
          #4

          Microsoft has an tutorial on both making the DLL and Including it another C++ program. It's no different for C just make the extensions .C instead of .CPP Walkthrough: Creating and Using a Dynamic Link Library (C++)[^] The only difference between a C and C++ DLL is C++ does name mangling Name mangling - Wikipedia[^]

          In vino veritas

          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