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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Making a DLL

Making a DLL

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 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.
  • W Offline
    W Offline
    wajih boukaram
    wrote on last edited by
    #1

    Hello I need to write a DLL for some functions that I have which depend on a separate lib file. when i write a short test program that uses the functions as is and link against the lib file, everything works great. But when i take the same functions and put them in a DLL, it doesn't work (i get some unresolved references to any function that I use from the lib file). Am i supposed to do anything special to get it to recognize the functions from the lib? thanks for your time.

    T M 2 Replies Last reply
    0
    • W wajih boukaram

      Hello I need to write a DLL for some functions that I have which depend on a separate lib file. when i write a short test program that uses the functions as is and link against the lib file, everything works great. But when i take the same functions and put them in a DLL, it doesn't work (i get some unresolved references to any function that I use from the lib file). Am i supposed to do anything special to get it to recognize the functions from the lib? thanks for your time.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      effectively, there are some things to get done for a DLL to work properly. you should start by reading this[^] article...


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      W 1 Reply Last reply
      0
      • T toxcct

        effectively, there are some things to get done for a DLL to work properly. you should start by reading this[^] article...


        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        W Offline
        W Offline
        wajih boukaram
        wrote on last edited by
        #3

        yeah i already know that bit when i have regular functions that don't depend on the library (the one that I didn't write) the dll builds just fine it's when i use the library's functions in my dll that i get the linking errors.

        1 Reply Last reply
        0
        • W wajih boukaram

          Hello I need to write a DLL for some functions that I have which depend on a separate lib file. when i write a short test program that uses the functions as is and link against the lib file, everything works great. But when i take the same functions and put them in a DLL, it doesn't work (i get some unresolved references to any function that I use from the lib file). Am i supposed to do anything special to get it to recognize the functions from the lib? thanks for your time.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          You haven't specified what type of DLL you're using or how you are linking and/or binding to the DLL at runtime so it's difficult to give a specific answer. I do know you will find links to a solution here[^] If I had to guess, I'd say you need to link your application project to the link library produces by a build of the DLL project, but again, this is a wild guess since you gave no specifics. Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          L W 2 Replies Last reply
          0
          • M Mark Salsbery

            You haven't specified what type of DLL you're using or how you are linking and/or binding to the DLL at runtime so it's difficult to give a specific answer. I do know you will find links to a solution here[^] If I had to guess, I'd say you need to link your application project to the link library produces by a build of the DLL project, but again, this is a wild guess since you gave no specifics. Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            Mark Salsbery wrote:

            since you gave no specifics.

            He's fishing

            1 Reply Last reply
            0
            • M Mark Salsbery

              You haven't specified what type of DLL you're using or how you are linking and/or binding to the DLL at runtime so it's difficult to give a specific answer. I do know you will find links to a solution here[^] If I had to guess, I'd say you need to link your application project to the link library produces by a build of the DLL project, but again, this is a wild guess since you gave no specifics. Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              W Offline
              W Offline
              wajih boukaram
              wrote on last edited by
              #6

              yeah that link helped - thanks :)

              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