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. Any one can help me with these code

Any one can help me with these code

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 Posts 5 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.
  • A Offline
    A Offline
    Archy_Yu
    wrote on last edited by
    #1

    #pragma comment(lib,"Shlwapi.lib") I personly think the code above is to load a "dll" file。Am i right or not? Any one can help me and explain it to me, thanks. Besides, i am not good at English, and if there is any grammar mistake,Please point it out directly. thanks again.

    A S 2 Replies Last reply
    0
    • A Archy_Yu

      #pragma comment(lib,"Shlwapi.lib") I personly think the code above is to load a "dll" file。Am i right or not? Any one can help me and explain it to me, thanks. Besides, i am not good at English, and if there is any grammar mistake,Please point it out directly. thanks again.

      A Offline
      A Offline
      ashtwin
      wrote on last edited by
      #2

      The following pragma causes the linker to search for the Shlwapi.lib library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.

      1 Reply Last reply
      0
      • A Archy_Yu

        #pragma comment(lib,"Shlwapi.lib") I personly think the code above is to load a "dll" file。Am i right or not? Any one can help me and explain it to me, thanks. Besides, i am not good at English, and if there is any grammar mistake,Please point it out directly. thanks again.

        S Offline
        S Offline
        Sethuraman K
        wrote on last edited by
        #3

        #pragma comment(lib,"Shlwapi.lib") code will link the lib file at compile time. It never look dll at compile time. This type of linking called static linking. Instad of this code you can add ur lib file(Shlwapi.lib) into Project-->Settings-->Link-->Object/Library Modules--> Shlwapi.lib

        Sethuraman.K

        I 1 Reply Last reply
        0
        • S Sethuraman K

          #pragma comment(lib,"Shlwapi.lib") code will link the lib file at compile time. It never look dll at compile time. This type of linking called static linking. Instad of this code you can add ur lib file(Shlwapi.lib) into Project-->Settings-->Link-->Object/Library Modules--> Shlwapi.lib

          Sethuraman.K

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          Sethuraman.K wrote:

          you can add ur lib file

          Ur[^] is an ancient Sumerian city. Is it a lib file as well? Iain.

          Codeproject MVP for C++, I can't believe it's for my lounge posts...

          CPalliniC 1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            Sethuraman.K wrote:

            you can add ur lib file

            Ur[^] is an ancient Sumerian city. Is it a lib file as well? Iain.

            Codeproject MVP for C++, I can't believe it's for my lounge posts...

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            Iain Clarke wrote:

            Ur[^] is an ancient Sumerian city. Is it a lib file as well?

            Yes, you need it in order to link with the Hammurabi code [^]. :rolleyes:

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            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