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#
  4. Convert c# to C++

Convert c# to C++

Scheduled Pinned Locked Moved C#
csharpc++winformshardwaretools
12 Posts 11 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.
  • D Offline
    D Offline
    dl4gbe
    wrote on last edited by
    #1

    Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

    N L J A J 7 Replies Last reply
    0
    • D dl4gbe

      Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      There are converters that do a C# to C++/CLI conversion for you. But to convert a C# app to a Win32 API app, it's not syntax conversion that's needed - you are essentially writing a totally different app targeting a totally different environment. The only converter available would be a human coder. Regards, Nish


      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
      The Ultimate Grid - The #1 MFC grid out there!

      1 Reply Last reply
      0
      • D dl4gbe

        Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

        L Offline
        L Offline
        Le centriste
        wrote on last edited by
        #3

        dl4gbe wrote:

        But the project manager insisted on .net Maybe he red too much codeproject

        Tsk. Tsk. Managers choosing technologies -------- "I say no to drugs, but they don't listen." - Marilyn Manson

        J M 2 Replies Last reply
        0
        • D dl4gbe

          Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

          J Offline
          J Offline
          Jeremy Falcon
          wrote on last edited by
          #4

          Like Nish said, you'd be better off rewriting the app. Jeremy Falcon

          1 Reply Last reply
          0
          • D dl4gbe

            Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

            A Offline
            A Offline
            Alvaro Mendez
            wrote on last edited by
            #5

            dl4gbe wrote:

            The garbage collector sucks and does not rock.

            :laugh::laugh::laugh: Good luck with the conversion! I recommend using some sort of tried and tested C++ framework, or you'll just end up writing your own. :~ Regards, Alvaro


            ... now you see that evil will always triumph because good is dumb. - Dark Helmet

            1 Reply Last reply
            0
            • D dl4gbe

              Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

              J Offline
              J Offline
              Jerry Hammond
              wrote on last edited by
              #6

              ::raised_eyebrow:: My Programming Library C#, C# Run

              D 1 Reply Last reply
              0
              • L Le centriste

                dl4gbe wrote:

                But the project manager insisted on .net Maybe he red too much codeproject

                Tsk. Tsk. Managers choosing technologies -------- "I say no to drugs, but they don't listen." - Marilyn Manson

                J Offline
                J Offline
                JimmyRopes
                wrote on last edited by
                #7

                Michael said; "Tsk. Tsk. Managers choosing technologies" They have a nasty habit of doing that. :rolleyes: I'm on-line therefore I am. JimmyRopes

                1 Reply Last reply
                0
                • J Jerry Hammond

                  ::raised_eyebrow:: My Programming Library C#, C# Run

                  D Offline
                  D Offline
                  dl4gbe
                  wrote on last edited by
                  #8

                  Hallo, maybe somemore details. Basically my application is using a technology simular to www.myxaml.com. I have the widget info stored in a xml file, and the forms are created on the fly (hundreds of them) I am not using ado.net (again not my decission) and I am using the buildin database (API) I have bad experiences with MFC. This device is so limited . One time I installed a driver which used MFC on one mschine. My application already run out of memory. After removing MFC it run again. :(( Is there any widget library avaiable which is not so demanding as MFC. I only need textbox, combobox, checkbox and radio button. The widgets should be created by createwindowex. But I guess I should not dream. But start to rewrite the whole damn application :(( Chris :)

                  1 Reply Last reply
                  0
                  • L Le centriste

                    dl4gbe wrote:

                    But the project manager insisted on .net Maybe he red too much codeproject

                    Tsk. Tsk. Managers choosing technologies -------- "I say no to drugs, but they don't listen." - Marilyn Manson

                    M Offline
                    M Offline
                    malharone
                    wrote on last edited by
                    #9

                    Michel Prévost wrote:

                    Tsk. Tsk. Managers choosing technologies

                    At least it is better than business users choosing technologies. :-D - Malhar

                    1 Reply Last reply
                    0
                    • D dl4gbe

                      Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

                      R Offline
                      R Offline
                      Red Stateler
                      wrote on last edited by
                      #10

                      A manager once told me to rewrite an embedded app (Windows CE) from C++ to C# when .Net 1.0 had recently come out. I tested the speed and I refused to do it. It stayed in C++.

                      1 Reply Last reply
                      0
                      • D dl4gbe

                        Hello, I would like to convert my windows forms application from C# to C++. Can this be done without rewriting the whole application? Oh, and I would not like to use MFC just plain API if possible. Any tools avaiable? The reasons are: C# is too slow. C# wastes too much memory. Before somebody complains: This can't be true! The application runs on an embedded device with a Micky Mouse processor and increadable 32 Megabyte of avaiable RAM. C# is just not good enough for this kind of maschines :(( The garbage collector sucks and does not rock. :mad: But I need all avaiable Bytes for data. Every possible byte. Operating system is windows ce (PocketPC) Chris ;) P.S.: It was not my idea to use .net in the first place. I planned to use C++ with API. But the project manager insisted on .net :(( Maybe he red too much codeproject :doh: -- modified at 11:26 Thursday 16th February, 2006

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

                        At my last company after writing over 100,000 lines of test and prototype code in .NET, I recommended we switch back to C++/MFC. C# was nice, I loved working in it, but for what we were doing, I felt it just isn't ready for "thick" client apps. You will have to rewrite, and would want to anyway in order to optimize the app for Win32 CE, but it's not difficult. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                        M 1 Reply Last reply
                        0
                        • J Joe Woodbury

                          At my last company after writing over 100,000 lines of test and prototype code in .NET, I recommended we switch back to C++/MFC. C# was nice, I loved working in it, but for what we were doing, I felt it just isn't ready for "thick" client apps. You will have to rewrite, and would want to anyway in order to optimize the app for Win32 CE, but it's not difficult. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                          M Offline
                          M Offline
                          Michael P Butler
                          wrote on last edited by
                          #12

                          Joe Woodbury wrote:

                          I loved working in it, but for what we were doing, I felt it just isn't ready for "thick" client apps.

                          Can you elaborate. I'm always interested to know where others have hit problems with writing thick clients with C#, so that I can avoid the same pitfalls. thanks, Michael CP Blog [^] Development 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