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. Wrapping MFC project to .net

Wrapping MFC project to .net

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharpquestion
7 Posts 3 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.
  • F Offline
    F Offline
    Fu Manchu
    wrote on last edited by
    #1

    I all, need to convert a MFC app to .net, would it be wise to strip out the MFC stuff first to just have normal ANSI C++ code and then wrap it in MC++? not sure if i'll run into problems later. thanks

    L J 2 Replies Last reply
    0
    • F Fu Manchu

      I all, need to convert a MFC app to .net, would it be wise to strip out the MFC stuff first to just have normal ANSI C++ code and then wrap it in MC++? not sure if i'll run into problems later. thanks

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Fu Manchu wrote:

      need to convert a MFC app to .net, would it be wise to strip out the MFC stuff

      You have an entire application written using MFC, what would be left if you "stripped" it out?

      led mike

      F 1 Reply Last reply
      0
      • L led mike

        Fu Manchu wrote:

        need to convert a MFC app to .net, would it be wise to strip out the MFC stuff

        You have an entire application written using MFC, what would be left if you "stripped" it out?

        led mike

        F Offline
        F Offline
        Fu Manchu
        wrote on last edited by
        #3

        well, i guess the windows stuff etc.. the code is an API for currency forex exchange - but i want to extract the main functionality of the API code and convert this to .net. the application is a sample app, it just has a menu with some basic functions - nothing fancy.

        L 1 Reply Last reply
        0
        • F Fu Manchu

          well, i guess the windows stuff etc.. the code is an API for currency forex exchange - but i want to extract the main functionality of the API code and convert this to .net. the application is a sample app, it just has a menu with some basic functions - nothing fancy.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Fu Manchu wrote:

          the code is an API for currency forex exchange - but i want to extract the main functionality of the API code and convert this to .net.

          well that statement is not at all equal to your original post

          Fu Manchu wrote:

          need to convert a MFC app to .net

          You have just won the home edition of our game "Who Wants to be a Programmer", thanks for playing.

          led mike

          F 1 Reply Last reply
          0
          • L led mike

            Fu Manchu wrote:

            the code is an API for currency forex exchange - but i want to extract the main functionality of the API code and convert this to .net.

            well that statement is not at all equal to your original post

            Fu Manchu wrote:

            need to convert a MFC app to .net

            You have just won the home edition of our game "Who Wants to be a Programmer", thanks for playing.

            led mike

            F Offline
            F Offline
            Fu Manchu
            wrote on last edited by
            #5

            eh, Sounds like you’re just in here for a laugh, I’ve been programming in many DIFFERENT languages for over 10 years, if you have nothing useful to add then don't question my ability... I’ve done this before and i'm not in anyway a beginner - i came here for advice but it seems to me know one here has the knowledge or the qualifications to help!

            L 1 Reply Last reply
            0
            • F Fu Manchu

              eh, Sounds like you’re just in here for a laugh, I’ve been programming in many DIFFERENT languages for over 10 years, if you have nothing useful to add then don't question my ability... I’ve done this before and i'm not in anyway a beginner - i came here for advice but it seems to me know one here has the knowledge or the qualifications to help!

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              Fu Manchu wrote:

              I’ve been programming in many DIFFERENT languages for over 10 years, if you have nothing useful to add then don't question my ability... I’ve done this before and i'm not in anyway a beginner - i came here for advice but it seems to me know one here has the knowledge or the qualifications to help!

              Yet you could not manage to formulate an intelligent question in your initial post that accurately represents your situation. And then you think it's ok to cast aspersions at me? Your like one of those assholes that cuts people off in traffic and then blames them for the incident, you are the problem in this thread ass wipe not me, fuck off.

              led mike

              1 Reply Last reply
              0
              • F Fu Manchu

                I all, need to convert a MFC app to .net, would it be wise to strip out the MFC stuff first to just have normal ANSI C++ code and then wrap it in MC++? not sure if i'll run into problems later. thanks

                J Offline
                J Offline
                Joe Woodbury
                wrote on last edited by
                #7

                You can simply compile your MFC application with the /CLR switch (project property, Configuration Properties|General|Common Language Runtime support.) If I must move an application from native to .NET, my own preference is to understand how the application works and then rewrite it in C# and fully leverage .NET. (I've had some code move almost straight across with mostly cosmetic changes--like having to put public in front of methods and so forth.)

                Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                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