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. Managed C++/CLI
  4. Managed C++ with MFC

Managed C++ with MFC

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharpannouncement
9 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.
  • K Offline
    K Offline
    ksandy45
    wrote on last edited by
    #1

    Hello I am very new to managed c++, i have to start the codeing which needs many MFC features. I have done the same in VC++ 6.0. Now i must port it onto VC++.net. Can anyone please confirm me wheather, i can start my project in VC++.net version (Managed C++) and also use the features of MFC. Kindly give me the method i need to follow. Thank you

    Kind Regards Sandy

    C 1 Reply Last reply
    0
    • K ksandy45

      Hello I am very new to managed c++, i have to start the codeing which needs many MFC features. I have done the same in VC++ 6.0. Now i must port it onto VC++.net. Can anyone please confirm me wheather, i can start my project in VC++.net version (Managed C++) and also use the features of MFC. Kindly give me the method i need to follow. Thank you

      Kind Regards Sandy

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

      Yes, you can create an MFC project and add the ( from memory ) /clr compiler switch to allow you to use managed code. However, MFC doesn't offer anything that .NET doesn't offer, are you sure you want to rely on both ?

      Christian Graus - C++ MVP

      K 1 Reply Last reply
      0
      • C Christian Graus

        Yes, you can create an MFC project and add the ( from memory ) /clr compiler switch to allow you to use managed code. However, MFC doesn't offer anything that .NET doesn't offer, are you sure you want to rely on both ?

        Christian Graus - C++ MVP

        K Offline
        K Offline
        ksandy45
        wrote on last edited by
        #3

        Thanks Christain, i think you have really made my work light. I am still in a dilama where i need to communicate with a firmware and also use some of the OCX for graphs and sliders. can my .net VC++ work in the same mannar as that of the MFC. since MFC is strong on these concepts(like sending and reciving data from any other device) and also very mush usefull in system programming. Kindly help me, I have to make a decision betwenn VC++.net and VC++.Net MFC. Is vc++.Net same as MFC? Sorry if i am bugging you up. I am deseprate for some support.

        Kind Regards Sandy

        C 1 Reply Last reply
        0
        • K ksandy45

          Thanks Christain, i think you have really made my work light. I am still in a dilama where i need to communicate with a firmware and also use some of the OCX for graphs and sliders. can my .net VC++ work in the same mannar as that of the MFC. since MFC is strong on these concepts(like sending and reciving data from any other device) and also very mush usefull in system programming. Kindly help me, I have to make a decision betwenn VC++.net and VC++.Net MFC. Is vc++.Net same as MFC? Sorry if i am bugging you up. I am deseprate for some support.

          Kind Regards Sandy

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

          ksandy45 wrote:

          Is vc++.Net same as MFC?

          No, it's not even close.  .NET is newer, less supported, but certainly does more.  If you have the choice, I'd take C# over C++/CLI.

          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

          K 1 Reply Last reply
          0
          • C Christian Graus

            ksandy45 wrote:

            Is vc++.Net same as MFC?

            No, it's not even close.  .NET is newer, less supported, but certainly does more.  If you have the choice, I'd take C# over C++/CLI.

            Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

            K Offline
            K Offline
            ksandy45
            wrote on last edited by
            #5

            Hmmmm..... I am bit confused, i don't mean that way. Can i achieve my things like communicating with Firmware, via VC++.net. Is it functionality wise Same(.net & MFC)?

            Kind Regards Sandy

            C 1 Reply Last reply
            0
            • K ksandy45

              Hmmmm..... I am bit confused, i don't mean that way. Can i achieve my things like communicating with Firmware, via VC++.net. Is it functionality wise Same(.net & MFC)?

              Kind Regards Sandy

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

              ksandy45 wrote:

              Can i achieve my things like communicating with Firmware, via VC++.net.

              Yes.  There is *nothing* you can do in MFC that you can't do in C++/CLI ( or Win32, for that matter ).  But, C++/CLI has a more modern framework, so it offers all sorts of stuff that vanilla C++ and MFC do not.

              ksandy45 wrote:

              Is it functionality wise Same(.net & MFC)?

              No.  Like I said, the .NET framework offers a lot of stuff that MFC does not.

              Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

              K 1 Reply Last reply
              0
              • C Christian Graus

                ksandy45 wrote:

                Can i achieve my things like communicating with Firmware, via VC++.net.

                Yes.  There is *nothing* you can do in MFC that you can't do in C++/CLI ( or Win32, for that matter ).  But, C++/CLI has a more modern framework, so it offers all sorts of stuff that vanilla C++ and MFC do not.

                ksandy45 wrote:

                Is it functionality wise Same(.net & MFC)?

                No.  Like I said, the .NET framework offers a lot of stuff that MFC does not.

                Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                K Offline
                K Offline
                ksandy45
                wrote on last edited by
                #7

                Thank you Christian. I have clear picture now. I can start my project using Managed C++ and still do all the functionalists that i have done using MFC. I hope what i predict is right? Kindly help me for my further queries. Thanks a lot.

                Kind Regards Sandy

                C 1 Reply Last reply
                0
                • K ksandy45

                  Thank you Christian. I have clear picture now. I can start my project using Managed C++ and still do all the functionalists that i have done using MFC. I hope what i predict is right? Kindly help me for my further queries. Thanks a lot.

                  Kind Regards Sandy

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

                  MFC is just a Win32 wrapper.  .NET is a whole new framework.  C++/CLI will allow you to do any Win32 call you like.

                  Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                  K 1 Reply Last reply
                  0
                  • C Christian Graus

                    MFC is just a Win32 wrapper.  .NET is a whole new framework.  C++/CLI will allow you to do any Win32 call you like.

                    Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                    K Offline
                    K Offline
                    ksandy45
                    wrote on last edited by
                    #9

                    Thank you very much. I am really very much satisfied with your help. I shall start implementing the same using C++/CLI. Kindly keep in touch. I shall be into trouble again... Thanks a lot:)

                    Kind Regards Sandy

                    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