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. error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)

error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelptutorial
6 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.
  • S Offline
    S Offline
    shivditya
    wrote on last edited by
    #1

    For drawing bitmap on my created window I require to add file #include (For SelectBitmap). But after including this file I get an error like this. I have also include "Windows.h",but if I remove it , I get an error about HINSTANCE. I have my code in regular dll.Can anyone tell how to resolve it.

    || ART OF LIVING ||

    H 1 Reply Last reply
    0
    • S shivditya

      For drawing bitmap on my created window I require to add file #include (For SelectBitmap). But after including this file I get an error like this. I have also include "Windows.h",but if I remove it , I get an error about HINSTANCE. I have my code in regular dll.Can anyone tell how to resolve it.

      || ART OF LIVING ||

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++ [^]


      WhiteSky


      S 1 Reply Last reply
      0
      • H Hamid Taebi

        See A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++ [^]


        WhiteSky


        S Offline
        S Offline
        shivditya
        wrote on last edited by
        #3

        Yes you are right. Thanks

        || ART OF LIVING ||

        H 1 Reply Last reply
        0
        • S shivditya

          Yes you are right. Thanks

          || ART OF LIVING ||

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Did that link solve your problem?


          WhiteSky


          S 1 Reply Last reply
          0
          • H Hamid Taebi

            Did that link solve your problem?


            WhiteSky


            S Offline
            S Offline
            shivditya
            wrote on last edited by
            #5

            That link solved indirectly,as I changed order of my library it worked.

            || ART OF LIVING ||

            H 1 Reply Last reply
            0
            • S shivditya

              That link solved indirectly,as I changed order of my library it worked.

              || ART OF LIVING ||

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              I gald it solved your problem.:-D


              WhiteSky


              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