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. Problem with MPR.lib/MFC90.DLL

Problem with MPR.lib/MFC90.DLL

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadminlearning
7 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.
  • T Offline
    T Offline
    tasumisra
    wrote on last edited by
    #1

    Hi Guru's, I am having a service where i am using "WNetAddConnection2" method to use network resource like shared drive. I would like to know if there is any other way where i can avoid using MPR.lib as additional dependencies , when i try to install the service it gives error saying MFC90.DLL not found reinstalling may fix the problem. I have removed MPR.LIB related code and compiled the service it works fine for me,but i need to have those code as part of service.so is there any other way by which i can make it working. if i dont use MPR.lib,it gives me linker error: 1>Linking... 1>Net.obj : error LNK2019: unresolved external symbol _WNetAddConnection2A@16 ................................... Please let me know your inputs. Thanks Vikas

    vikas da

    L G 2 Replies Last reply
    0
    • T tasumisra

      Hi Guru's, I am having a service where i am using "WNetAddConnection2" method to use network resource like shared drive. I would like to know if there is any other way where i can avoid using MPR.lib as additional dependencies , when i try to install the service it gives error saying MFC90.DLL not found reinstalling may fix the problem. I have removed MPR.LIB related code and compiled the service it works fine for me,but i need to have those code as part of service.so is there any other way by which i can make it working. if i dont use MPR.lib,it gives me linker error: 1>Linking... 1>Net.obj : error LNK2019: unresolved external symbol _WNetAddConnection2A@16 ................................... Please let me know your inputs. Thanks Vikas

      vikas da

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

      I have never used this feature but there may be some clues in the documentation[^]. You can also find some help about MFC90.DLL here[^].

      Unrequited desire is character building. OriginalGriff

      T 1 Reply Last reply
      0
      • L Lost User

        I have never used this feature but there may be some clues in the documentation[^]. You can also find some help about MFC90.DLL here[^].

        Unrequited desire is character building. OriginalGriff

        T Offline
        T Offline
        tasumisra
        wrote on last edited by
        #3

        Thank you so much for the reply. I had read the documentation..but this is not something coding problem i guess, i missing some configuration may be redistribution pack or some DLL... why i am guessing this this code was working fine with Visual Studio 2005,now i have upgrated to 2008 +some enhancement.

        vikas da

        L 1 Reply Last reply
        0
        • T tasumisra

          Thank you so much for the reply. I had read the documentation..but this is not something coding problem i guess, i missing some configuration may be redistribution pack or some DLL... why i am guessing this this code was working fine with Visual Studio 2005,now i have upgrated to 2008 +some enhancement.

          vikas da

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

          Well the error messages you are seeing seem fairly clear. If you do not include MPR.lib you get a linker undefined issue, so you must include that library. With that library included you have a dependency on MFC90.dll, so you must get a copy of that dll installed on your system.

          Unrequited desire is character building. OriginalGriff

          T 1 Reply Last reply
          0
          • T tasumisra

            Hi Guru's, I am having a service where i am using "WNetAddConnection2" method to use network resource like shared drive. I would like to know if there is any other way where i can avoid using MPR.lib as additional dependencies , when i try to install the service it gives error saying MFC90.DLL not found reinstalling may fix the problem. I have removed MPR.LIB related code and compiled the service it works fine for me,but i need to have those code as part of service.so is there any other way by which i can make it working. if i dont use MPR.lib,it gives me linker error: 1>Linking... 1>Net.obj : error LNK2019: unresolved external symbol _WNetAddConnection2A@16 ................................... Please let me know your inputs. Thanks Vikas

            vikas da

            G Offline
            G Offline
            Goto_Label_
            wrote on last edited by
            #5

            get help here

            1 Reply Last reply
            0
            • L Lost User

              Well the error messages you are seeing seem fairly clear. If you do not include MPR.lib you get a linker undefined issue, so you must include that library. With that library included you have a dependency on MFC90.dll, so you must get a copy of that dll installed on your system.

              Unrequited desire is character building. OriginalGriff

              T Offline
              T Offline
              tasumisra
              wrote on last edited by
              #6

              Thank you so much guys..i have fixed the linker error by editing project setting where Menifest was not included..now i am getting side by side asseble error for Microsoft.VC80.CRT...

              vikas da

              L 1 Reply Last reply
              0
              • T tasumisra

                Thank you so much guys..i have fixed the linker error by editing project setting where Menifest was not included..now i am getting side by side asseble error for Microsoft.VC80.CRT...

                vikas da

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

                A similar issue, you need to check your settings: directories, libraries etc.

                Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

                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