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. mfc dll

mfc dll

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
6 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.
  • P Offline
    P Offline
    peter ho
    wrote on last edited by
    #1

    Hi I wrote a dialog based program using mfc. When I run it from another computer, the program indicates "can not find mfc42.dll, mfc042.dll....." Does anyone know how to compile the program so that these dll files will be included? thanks

    C R C 3 Replies Last reply
    0
    • P peter ho

      Hi I wrote a dialog based program using mfc. When I run it from another computer, the program indicates "can not find mfc42.dll, mfc042.dll....." Does anyone know how to compile the program so that these dll files will be included? thanks

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      Project / Settings / General change Microsoft Foundation Classes to the "Use MFC in a static library" option. -c


      A conclusion is simply the place where someone got tired of thinking.

      Smaller Animals Software

      1 Reply Last reply
      0
      • P peter ho

        Hi I wrote a dialog based program using mfc. When I run it from another computer, the program indicates "can not find mfc42.dll, mfc042.dll....." Does anyone know how to compile the program so that these dll files will be included? thanks

        R Offline
        R Offline
        roboo
        wrote on last edited by
        #3

        I think you can create a setup package. I am I,Who is who,I am who,Who am I

        1 Reply Last reply
        0
        • P peter ho

          Hi I wrote a dialog based program using mfc. When I run it from another computer, the program indicates "can not find mfc42.dll, mfc042.dll....." Does anyone know how to compile the program so that these dll files will be included? thanks

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          It depends on the version of VC you have - Standard will not allow you to bind statically, although I believe there are articles about on how to do that anyhow. In any case, the alternative is to ship the dll's. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

          T 1 Reply Last reply
          0
          • C Christian Graus

            It depends on the version of VC you have - Standard will not allow you to bind statically, although I believe there are articles about on how to do that anyhow. In any case, the alternative is to ship the dll's. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

            T Offline
            T Offline
            TigerNinja_
            wrote on last edited by
            #5

            Christian Graus wrote: the alternative is to ship the dll's. aren't the dlls shipped with some of the OS (ie. Win98, Win2000) ? what I really mean, is there a good way to know if your program will work on a certain OS. for example, say I write a program using Visual C++ 6 (MFC), will it run on Win95,98,2000 without shipping the mfcXXX.dlls ? TIA


            Soliant | email   "The 'B' in Visual Basic means Beginner" - R. Bischoff

            C 1 Reply Last reply
            0
            • T TigerNinja_

              Christian Graus wrote: the alternative is to ship the dll's. aren't the dlls shipped with some of the OS (ie. Win98, Win2000) ? what I really mean, is there a good way to know if your program will work on a certain OS. for example, say I write a program using Visual C++ 6 (MFC), will it run on Win95,98,2000 without shipping the mfcXXX.dlls ? TIA


              Soliant | email   "The 'B' in Visual Basic means Beginner" - R. Bischoff

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              I don't believe they are ever shipped, but they are often there. You simply cannot count on them though, I learned that with the first release of viewbuild. You need to also find out if you use any C run time functions, if you do, you need msvcrt*.dll as well. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002

              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