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. MFC version used ?

MFC version used ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studioquestioncom
31 Posts 12 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
    toxcct
    wrote on last edited by
    #1

    hi everyone, my question is quite simple. i have both Visual Studio 6 and Visual Studio .NET 2003 installed on my computer. i programmed a little tool in MFC with VC++6. then, i'd like to burn it on a CD for someone who don't have VS installed. I must provide the MFC dll. What DLL should i provide with my program ? MFC40.dll, MFC42.dl, MFC71.dll ???


    TOXCCT >>> GEII power
    [toxcct][VisualCalc]

    T L J T U 5 Replies Last reply
    0
    • T toxcct

      hi everyone, my question is quite simple. i have both Visual Studio 6 and Visual Studio .NET 2003 installed on my computer. i programmed a little tool in MFC with VC++6. then, i'd like to burn it on a CD for someone who don't have VS installed. I must provide the MFC dll. What DLL should i provide with my program ? MFC40.dll, MFC42.dl, MFC71.dll ???


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

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

      toxcct wrote: i programmed a little tool in MFC with VC++6. VC++ 6.0 Released Version Application Use MFC42.dll, so provide that only!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta

      T 1 Reply Last reply
      0
      • T ThatsAlok

        toxcct wrote: i programmed a little tool in MFC with VC++6. VC++ 6.0 Released Version Application Use MFC42.dll, so provide that only!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

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

        oh oh, Mr alok is back ! :-D ThatsAlok wrote: VC++ 6.0 Released Version Application Use MFC42.dll, so provide that only! yes, that's what i was thinking of, but i was not sure. do you have any rules to assure me on this ?


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        T 1 Reply Last reply
        0
        • T toxcct

          oh oh, Mr alok is back ! :-D ThatsAlok wrote: VC++ 6.0 Released Version Application Use MFC42.dll, so provide that only! yes, that's what i was thinking of, but i was not sure. do you have any rules to assure me on this ?


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

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

          toxcct wrote: Mr alok No need to Put Mr. by My Name :), you can use Alok alone! toxcct wrote: but i was not sure. do you have any rules to assure me on this ? Have a Try!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          T 1 Reply Last reply
          0
          • T ThatsAlok

            toxcct wrote: Mr alok No need to Put Mr. by My Name :), you can use Alok alone! toxcct wrote: but i was not sure. do you have any rules to assure me on this ? Have a Try!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta

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

            ThatsAlok wrote: Have a Try! by burning 3 CD ?! :confused: X| lol


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

            T 2 Replies Last reply
            0
            • T toxcct

              ThatsAlok wrote: Have a Try! by burning 3 CD ?! :confused: X| lol


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

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

              toxcct wrote: by burning 3 CD Nope Just burning CD with MFC42.dll. I am Damm sure Visual Studio 6.0 Application Only use MFC42.dll!

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta

              1 Reply Last reply
              0
              • T toxcct

                ThatsAlok wrote: Have a Try! by burning 3 CD ?! :confused: X| lol


                TOXCCT >>> GEII power
                [toxcct][VisualCalc]

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

                Have a look at this http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconmfcvisualcversionnumbers.asp[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvc60/html/redistribvc6.asp[^]

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta

                M 1 Reply Last reply
                0
                • T toxcct

                  hi everyone, my question is quite simple. i have both Visual Studio 6 and Visual Studio .NET 2003 installed on my computer. i programmed a little tool in MFC with VC++6. then, i'd like to burn it on a CD for someone who don't have VS installed. I must provide the MFC dll. What DLL should i provide with my program ? MFC40.dll, MFC42.dl, MFC71.dll ???


                  TOXCCT >>> GEII power
                  [toxcct][VisualCalc]

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

                  If you build your application in Release mode in VC++ 6.0 then i assure you don't need any dll files to attach to the CD.Your application will run on any other computer where Visual Studio is not installed without problems. But if you do the same in VC++.Net 2003 then you'll need the MFC71.dll file. m0n0

                  T C 2 Replies Last reply
                  0
                  • L Lost User

                    If you build your application in Release mode in VC++ 6.0 then i assure you don't need any dll files to attach to the CD.Your application will run on any other computer where Visual Studio is not installed without problems. But if you do the same in VC++.Net 2003 then you'll need the MFC71.dll file. m0n0

                    T Offline
                    T Offline
                    toxcct
                    wrote on last edited by
                    #9

                    :laugh::laugh::laugh::laugh: quoting the MSDN (thanks to Alok) : "Mfc42.dll needs to be redistributed with MFC applications unless you statically linked to the MFC DLL (that is, unless you specified Use MFC in a Static Library on the General tab in the Project Settings dialog box). Note that static linking to MFC is supported only in Visual C++ Professional and Enterprise Editions. If you dynamically link your application to the MFC library, you will, at a minimum, need to redistribute Mfc42.dll and Msvcrt.dll. All MFC DLLs use the shared version of the C run-time library; thus, Msvcrt.dll is required. " so, revise your judgment...


                    TOXCCT >>> GEII power
                    [toxcct][VisualCalc]

                    C L 2 Replies Last reply
                    0
                    • L Lost User

                      If you build your application in Release mode in VC++ 6.0 then i assure you don't need any dll files to attach to the CD.Your application will run on any other computer where Visual Studio is not installed without problems. But if you do the same in VC++.Net 2003 then you'll need the MFC71.dll file. m0n0

                      C Offline
                      C Offline
                      Cedric Moonen
                      wrote on last edited by
                      #10

                      Giorgi Moniava wrote: then i assure you don't need any dll files to attach to the CD Nope ! Only if you choose to statically link the MFC to your project. Otherwise you still need an external dll containing the MFC's.

                      J 1 Reply Last reply
                      0
                      • T toxcct

                        :laugh::laugh::laugh::laugh: quoting the MSDN (thanks to Alok) : "Mfc42.dll needs to be redistributed with MFC applications unless you statically linked to the MFC DLL (that is, unless you specified Use MFC in a Static Library on the General tab in the Project Settings dialog box). Note that static linking to MFC is supported only in Visual C++ Professional and Enterprise Editions. If you dynamically link your application to the MFC library, you will, at a minimum, need to redistribute Mfc42.dll and Msvcrt.dll. All MFC DLLs use the shared version of the C run-time library; thus, Msvcrt.dll is required. " so, revise your judgment...


                        TOXCCT >>> GEII power
                        [toxcct][VisualCalc]

                        C Offline
                        C Offline
                        Cedric Moonen
                        wrote on last edited by
                        #11

                        Damn, you write faster than me ;P

                        T T 2 Replies Last reply
                        0
                        • C Cedric Moonen

                          Damn, you write faster than me ;P

                          T Offline
                          T Offline
                          toxcct
                          wrote on last edited by
                          #12

                          cedric moonen wrote: Damn, you write faster than me yep... you didn't know ? :->


                          TOXCCT >>> GEII power
                          [toxcct][VisualCalc]

                          1 Reply Last reply
                          0
                          • T toxcct

                            :laugh::laugh::laugh::laugh: quoting the MSDN (thanks to Alok) : "Mfc42.dll needs to be redistributed with MFC applications unless you statically linked to the MFC DLL (that is, unless you specified Use MFC in a Static Library on the General tab in the Project Settings dialog box). Note that static linking to MFC is supported only in Visual C++ Professional and Enterprise Editions. If you dynamically link your application to the MFC library, you will, at a minimum, need to redistribute Mfc42.dll and Msvcrt.dll. All MFC DLLs use the shared version of the C run-time library; thus, Msvcrt.dll is required. " so, revise your judgment...


                            TOXCCT >>> GEII power
                            [toxcct][VisualCalc]

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

                            Revising my judgment... :) Mfc42.dll is automatically installed in the windows directory if you install win98/XP that is why you don't need to attach this file to your CD. Because if the user has win98/XP installed it means he already has this dll file. I've done it many times and have never experienced problems. As mfc71.dll was released after win98/xp , thats why you'll have to attach this file to CD if you are building your app in C++.Net 2003 m0n0

                            T 1 Reply Last reply
                            0
                            • L Lost User

                              Revising my judgment... :) Mfc42.dll is automatically installed in the windows directory if you install win98/XP that is why you don't need to attach this file to your CD. Because if the user has win98/XP installed it means he already has this dll file. I've done it many times and have never experienced problems. As mfc71.dll was released after win98/xp , thats why you'll have to attach this file to CD if you are building your app in C++.Net 2003 m0n0

                              T Offline
                              T Offline
                              toxcct
                              wrote on last edited by
                              #14

                              i still don't agree. if MFC is already install, it has 2 reasons for me : 1. Visual studio is installed on the computer 2. Another application already copied the libraries to the computer if you format and install windows wathever version, try executing an MFC program without its dlls... it won't work ! and i trust MSDN on this point !!


                              TOXCCT >>> GEII power
                              [toxcct][VisualCalc]

                              L D 3 Replies Last reply
                              0
                              • T toxcct

                                i still don't agree. if MFC is already install, it has 2 reasons for me : 1. Visual studio is installed on the computer 2. Another application already copied the libraries to the computer if you format and install windows wathever version, try executing an MFC program without its dlls... it won't work ! and i trust MSDN on this point !!


                                TOXCCT >>> GEII power
                                [toxcct][VisualCalc]

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

                                you can trust whom you want ... I just told you my experience i ' ve copied my applications(simple exe-s,VC++ 6.0) to too many computers-s of my friends and not only who did not have Visual Studio installed and my app ran without any problems. You can ask anybody that mfc42.dll is installed during the win98/xp install automatically. Of course same did not work with app-s built on VC++.Net 2003 m0n0

                                1 Reply Last reply
                                0
                                • C Cedric Moonen

                                  Giorgi Moniava wrote: then i assure you don't need any dll files to attach to the CD Nope ! Only if you choose to statically link the MFC to your project. Otherwise you still need an external dll containing the MFC's.

                                  J Offline
                                  J Offline
                                  J B 0
                                  wrote on last edited by
                                  #16

                                  Nope ! Only if you choose to statically link the MFC to your project.

                                  That's what I have done in my most projects. Just wondering, if there is any reasons that should not be done, except an increase of overall application size. Thanks

                                  T B 2 Replies Last reply
                                  0
                                  • C Cedric Moonen

                                    Damn, you write faster than me ;P

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

                                    cedric moonen wrote: Damn, you write faster than me I will Ask TOX to use only one finger for typing and that too be Left hand Left Most Finger :)

                                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                                    cheers, Alok Gupta

                                    1 Reply Last reply
                                    0
                                    • J J B 0

                                      Nope ! Only if you choose to statically link the MFC to your project.

                                      That's what I have done in my most projects. Just wondering, if there is any reasons that should not be done, except an increase of overall application size. Thanks

                                      T Offline
                                      T Offline
                                      toxcct
                                      wrote on last edited by
                                      #18

                                      yes, increase of exe file size, and also for future evolutions...


                                      TOXCCT >>> GEII power
                                      [toxcct][VisualCalc]

                                      U 1 Reply Last reply
                                      0
                                      • T toxcct

                                        yes, increase of exe file size, and also for future evolutions...


                                        TOXCCT >>> GEII power
                                        [toxcct][VisualCalc]

                                        U Offline
                                        U Offline
                                        User 1990498
                                        wrote on last edited by
                                        #19

                                        Hi everyone, does anyone here know how to compress DICOM image to raw format and save image file into a binary file format as a 1 dimensional array. Mine is a 256x256 image. Can help me write a program to display the pixel value of black and white when i run the program.

                                        B 1 Reply Last reply
                                        0
                                        • J J B 0

                                          Nope ! Only if you choose to statically link the MFC to your project.

                                          That's what I have done in my most projects. Just wondering, if there is any reasons that should not be done, except an increase of overall application size. Thanks

                                          B Offline
                                          B Offline
                                          Bob Stanneveld
                                          wrote on last edited by
                                          #20

                                          The main reason why this should not be done, is because MS will not be able to help you with updates if you statically link to their libs into your app. Another good reason might be applicable when you develop a large application. The reason that comes to mind is: when you statically link to MFC's libraries, your link time will increase dramatically. This is not very pleasant if you have to wait a very long time before your application is linked together. Blog[^]

                                          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