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. about the dll and lib

about the dll and lib

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 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
    wendyyue
    wrote on last edited by
    #1

    in a source file(.cpp and .h), how can I know it call the dll? if it calls the dll, how can I make it call the static lib instead of dll, can anyone give me specific instruction about this topic?

    R N 2 Replies Last reply
    0
    • W wendyyue

      in a source file(.cpp and .h), how can I know it call the dll? if it calls the dll, how can I make it call the static lib instead of dll, can anyone give me specific instruction about this topic?

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      My head asplode.

      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

      T 1 Reply Last reply
      0
      • W wendyyue

        in a source file(.cpp and .h), how can I know it call the dll? if it calls the dll, how can I make it call the static lib instead of dll, can anyone give me specific instruction about this topic?

        N Offline
        N Offline
        Nathan Holt at EMOM
        wrote on last edited by
        #3

        wendyyue wrote:

        in a source file(.cpp and .h), how can I know it call the dll? if it calls the dll, how can I make it call the static lib instead of dll, can anyone give me specific instruction about this topic?

        The calling of a lib or dll is determined at link time. If you link with the dll's import library, the code will call the dll. If you link with the static library, your code will call that. Nathan

        1 Reply Last reply
        0
        • R Rajesh R Subramanian

          My head asplode.

          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

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

          asplode? i think you mean to say explode :-)

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
          Never mind - my own stupidity is the source of every "problem" - Mixture

          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

          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