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. The Lounge
  3. MFC to .NET

MFC to .NET

Scheduled Pinned Locked Moved The Lounge
csharpquestionc++
12 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.
  • E Offline
    E Offline
    Erick Sgarbi
    wrote on last edited by
    #1

    What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick

    M B I 4 Replies Last reply
    0
    • E Erick Sgarbi

      What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick

      M Offline
      M Offline
      Matt Newman
      wrote on last edited by
      #2

      Erick Sgarbi wrote: Or maybe just exposing MFC to .NET I don't have much experience on the subject. But Nish and Tom Archer are releasing a book this fall (I think September) on how to do this. Matt Newman
      Sonork: 100:11179 "Jokes should at least try to be intelligent - this is just toilet humor" - Heath Stewart

      E 1 Reply Last reply
      0
      • E Erick Sgarbi

        What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick

        B Offline
        B Offline
        Brian Delahunty
        wrote on last edited by
        #3

        You'd use MFC with .NET. Tom and Nish have a book comming out soon[october I think... I read the first 4 chapters and it's very good at explaining all this stuff]. If you need some help drop me an email and I'll see what I can do but I'm only around for the next 2 weeks and I'm a little busy at the moment. Regards, Brian Dela :-)

        A 1 Reply Last reply
        0
        • E Erick Sgarbi

          What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick

          B Offline
          B Offline
          Brian Delahunty
          wrote on last edited by
          #4

          http://www.amazon.com/exec/obidos/tg/detail/-/032117352X/qid=1059921675/sr=1-7/ref=sr_1_7/104-4264733-0568741?v=glance&s=books[^] Regards, Brian Dela :-)

          E 1 Reply Last reply
          0
          • B Brian Delahunty

            http://www.amazon.com/exec/obidos/tg/detail/-/032117352X/qid=1059921675/sr=1-7/ref=sr_1_7/104-4264733-0568741?v=glance&s=books[^] Regards, Brian Dela :-)

            E Offline
            E Offline
            Erick Sgarbi
            wrote on last edited by
            #5

            Thanks Brian. I'll definetly put an order for that one :-D. I am not in a hurry for porting my MFC to .NET however I just wanted to know if there was a quick and dirty way to do it so I could start doing some benchmarking. Cheers. Erick

            1 Reply Last reply
            0
            • M Matt Newman

              Erick Sgarbi wrote: Or maybe just exposing MFC to .NET I don't have much experience on the subject. But Nish and Tom Archer are releasing a book this fall (I think September) on how to do this. Matt Newman
              Sonork: 100:11179 "Jokes should at least try to be intelligent - this is just toilet humor" - Heath Stewart

              E Offline
              E Offline
              Erick Sgarbi
              wrote on last edited by
              #6

              Thanks Matt!:-D Cheers, Erick

              1 Reply Last reply
              0
              • B Brian Delahunty

                You'd use MFC with .NET. Tom and Nish have a book comming out soon[october I think... I read the first 4 chapters and it's very good at explaining all this stuff]. If you need some help drop me an email and I'll see what I can do but I'm only around for the next 2 weeks and I'm a little busy at the moment. Regards, Brian Dela :-)

                A Offline
                A Offline
                Anders Molin
                wrote on last edited by
                #7

                I thought the book was about using .NET stuff from a MFC program. What Erick want is the other way around, using MFC controls in C# - Anders Money talks, but all mine ever says is "Goodbye!" http://SourceLocker.net[^] SourceControl and DefectTracker Project. nsms@spyf.dk <- Spam Collecting ;)

                B 1 Reply Last reply
                0
                • A Anders Molin

                  I thought the book was about using .NET stuff from a MFC program. What Erick want is the other way around, using MFC controls in C# - Anders Money talks, but all mine ever says is "Goodbye!" http://SourceLocker.net[^] SourceControl and DefectTracker Project. nsms@spyf.dk <- Spam Collecting ;)

                  B Offline
                  B Offline
                  Brian Delahunty
                  wrote on last edited by
                  #8

                  Anders Molin wrote: I thought the book was about using .NET stuff from a MFC program. Yep. but I said in teh first line of the post that you would use MFC with .NET. Ok.. Maybe I wasn't clear. Regards, Brian Dela :-)

                  1 Reply Last reply
                  0
                  • E Erick Sgarbi

                    What if you have a set of controls that you like and been using for a while in MFC and suddendly you want to use them under C#. What is the approach would you use to make the porting painless? Or maybe just exposing MFC to .NET Cheers, Erick

                    I Offline
                    I Offline
                    igor1960
                    wrote on last edited by
                    #9

                    Check this article if interested: http://members.cox.net/igor.tebelev/ActiveXDeployer Unfortunately it can't be published on CP. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

                    E 1 Reply Last reply
                    0
                    • I igor1960

                      Check this article if interested: http://members.cox.net/igor.tebelev/ActiveXDeployer Unfortunately it can't be published on CP. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

                      E Offline
                      E Offline
                      Erick Sgarbi
                      wrote on last edited by
                      #10

                      Thanks Igor, But my questions was more towards MFC. Say you have an MFC dll that contais ..a grid yes..say that I am trying to get Chris' MFC grid to work on .NET, what is the most painless way to do it? Nice article anyway. Cheers Erick

                      I 1 Reply Last reply
                      0
                      • E Erick Sgarbi

                        Thanks Igor, But my questions was more towards MFC. Say you have an MFC dll that contais ..a grid yes..say that I am trying to get Chris' MFC grid to work on .NET, what is the most painless way to do it? Nice article anyway. Cheers Erick

                        I Offline
                        I Offline
                        igor1960
                        wrote on last edited by
                        #11

                        I would assume that nothing stops you from writing MC wrapper around MFC dll. However, that would be almost the same as converting MFC control to an ActiveX with just one advantage: you don't have to follow strict Automation rules. Would it be painless? I doubt. For simple cases it probably would. But for more advanced MFC controls -- I would assume it will require alot of work. Also, trying to utilize MFC will render your managed code not to run in secured sandbox. So, why bother? Regards, Igor "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

                        E 1 Reply Last reply
                        0
                        • I igor1960

                          I would assume that nothing stops you from writing MC wrapper around MFC dll. However, that would be almost the same as converting MFC control to an ActiveX with just one advantage: you don't have to follow strict Automation rules. Would it be painless? I doubt. For simple cases it probably would. But for more advanced MFC controls -- I would assume it will require alot of work. Also, trying to utilize MFC will render your managed code not to run in secured sandbox. So, why bother? Regards, Igor "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me

                          E Offline
                          E Offline
                          Erick Sgarbi
                          wrote on last edited by
                          #12

                          That's what I thought.:(( Cheers, Erick

                          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