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.
  • 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
        • U User 1990498

          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 Offline
          B Offline
          Bob Stanneveld
          wrote on last edited by
          #21

          Go and start your own thread... Blog[^]

          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]

            J Offline
            J Offline
            Jon Hulatt
            wrote on last edited by
            #22

            Use depends.exe to see what dll's your exe needs. That's the sure way. But i'd reccomend against shipping kernel32.dll etc ;-)

            using System.Beer;

            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]

              T Offline
              T Offline
              Tim Smith
              wrote on last edited by
              #23

              Run depends.exe and load your EXE. This is the best way to tell which DLL you need. Tim Smith I'm going to patent thought. I have yet to see any prior art.

              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]

                U Offline
                U Offline
                Usman Tasleem Akshaf
                wrote on last edited by
                #24

                If i remember correctly you just make the executable file for your application in the release folder (ie release ) and not debug.It may solve the problem.If someone thinks that i am incorrect please give me a feedback. Be FaithFull To Your Work.

                T 1 Reply 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]

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #25

                  toxcct wrote: 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 I agree. Point #2 is usually the reason that folks think MFC exists with native Windows. toxcct wrote: if you format and install windows wathever version, try executing an MFC program without its dlls... it won't work ! I agree again. This has happened to me on more than one occasion.


                  "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

                  L 1 Reply Last reply
                  0
                  • U Usman Tasleem Akshaf

                    If i remember correctly you just make the executable file for your application in the release folder (ie release ) and not debug.It may solve the problem.If someone thinks that i am incorrect please give me a feedback. Be FaithFull To Your Work.

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

                    nop, that's not it. of course, when i compile the project, the exe file is located into the Debug or Release folder. but if you read all the posts of the subject, i'd like to move the exe to a CD to be use on one's computer that is suspected not to have MFCxx.DLL on its system. but it's ok now, i received many good answers to know what to do... thanks


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

                    1 Reply Last reply
                    0
                    • D David Crow

                      toxcct wrote: 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 I agree. Point #2 is usually the reason that folks think MFC exists with native Windows. toxcct wrote: if you format and install windows wathever version, try executing an MFC program without its dlls... it won't work ! I agree again. This has happened to me on more than one occasion.


                      "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

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

                      DavidCrow wrote: I agree. Point #2 is usually the reason that folks think MFC exists with native Windows. i've searched for google to find out whether is mfc42.dll win native file and found this Here : mfc42.dll (Microsoft Foundation Classes Library) - Details The mfc42.dll library is required for windows to operate. It provides a number of classes and code functions that are used in a wide variety of programs written using the Visual C++ programming language. If mfc42.dll is unavailable, any software that relies on the functions that it provides will crash and/or become unstable. i also got THIS answer on Microsoft forum , from an MVP

                      1 Reply 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
                        #28

                        Look Here


                        "Go as far as you can see,and when you get there you’ll see further" - Unknown

                        T 1 Reply Last reply
                        0
                        • T ThatsAlok

                          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 Offline
                          M Offline
                          M Wohlers
                          wrote on last edited by
                          #29

                          Start your application with Depends.Exe. This tool will show you which DLLs are used by your program. It can be found in a sub directory of Visual. cheers, Marc Wohlers

                          T 1 Reply Last reply
                          0
                          • M M Wohlers

                            Start your application with Depends.Exe. This tool will show you which DLLs are used by your program. It can be found in a sub directory of Visual. cheers, Marc Wohlers

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

                            HI Marc, By Mistake you post your answer to Wrong Guy! :), Right Guy, Who is looking for Answer is Tox. Anyway 5x from Me

                            "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
                            • L Lost User

                              Look Here


                              "Go as far as you can see,and when you get there you’ll see further" - Unknown

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

                              Giorgi Moniava wrote: Look Here Ok Agreed Mr Moniava, Frankly Speaking i never ship MFC42.dll with any of my company product!

                              "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
                              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