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. Help native C++ and .net

Help native C++ and .net

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++help
11 Posts 6 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.
  • A ashish8patil

    Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .

    _ Offline
    _ Offline
    _AnsHUMAN_
    wrote on last edited by
    #2

    If your code is in win32 [dll] you can write a RCW[Runtime Callable Wrapper] for the exposed functions and then use them in C#. Alternatively you can also use Interop Interop is for calling raw DLL exported functions. RCW (Runtime Callable Wrapper) is used to expose COM objects to .NET classes - ie., to make COM objects callable by .NET code.

    You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

    1 Reply Last reply
    0
    • A ashish8patil

      Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #3

      ashish8patil wrote:

      I develop code in vc++,win32. Now my next part is to make GUI in very short period.

      You may also use MFC for this task.

      ashish8patil wrote:

      If i use C# to make GUI and backend code in vc++.Is it possible.

      Yes.

      ashish8patil wrote:

      And Please tell good things and bad things if i use like that .and more from you .

      Well, if you're a C++ developer, then you've to learn C# enough to make the GUI and at least about Platform Invoke [^] (alternatively COM interop [^]), such tasks are, of course, time-consuming. The good things, I suppose, come from the experience gained about mixing the two worlds. Eventually you may also conside to develop both GUI and core modules using C# (i.e go manged!). :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • A ashish8patil

        Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #4

        ashish8patil wrote:

        I develop code in vc++,win32. Now my next part is to make GUI in very short period.

        You may opt to use MFC instead, which allows you to build dialog based applications, doc/view applications, ActiveX controls, etc., all with the help of wizards and existing templates. Give it a shot and you won't be disappointed.

        ashish8patil wrote:

        If i use C# to make GUI and backend code in vc++

        You should not be doing such a thing unless it is absolutely necessary.

        It is a crappy thing, but it's life -^ Carlo Pallini

        T 1 Reply Last reply
        0
        • A ashish8patil

          Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .

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

          As others also wrote, the use of a MFC-GUI is the fastest and easiset way to get a nice GUI working with C++. Making a C#-GUI (and C++ Code) is an option with leeds to more works, and is only fine if you need some C#-Features.

          Press F1 for help or google it. Greetings from Germany

          1 Reply Last reply
          0
          • A ashish8patil

            Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .

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

            ashish8patil wrote:

            If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you

            It wouldn't be wrong choice if you design your GUI in C# and use unmanaged coding at back hand. Only question is, how you are integrating between two....?

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
            Never mind - my own stupidity is the source of every "problem" - Mixture

            cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

            A 1 Reply Last reply
            0
            • R Rajesh R Subramanian

              ashish8patil wrote:

              I develop code in vc++,win32. Now my next part is to make GUI in very short period.

              You may opt to use MFC instead, which allows you to build dialog based applications, doc/view applications, ActiveX controls, etc., all with the help of wizards and existing templates. Give it a shot and you won't be disappointed.

              ashish8patil wrote:

              If i use C# to make GUI and backend code in vc++

              You should not be doing such a thing unless it is absolutely necessary.

              It is a crappy thing, but it's life -^ Carlo Pallini

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

              Rajesh R Subramanian wrote:

              ashish8patil wrote: If i use C# to make GUI and backend code in vc++ You should not be doing such a thing unless it is absolutely necessary.

              IMHO, I am doing this only :-)!

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
              Never mind - my own stupidity is the source of every "problem" - Mixture

              cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

              1 Reply Last reply
              0
              • T ThatsAlok

                ashish8patil wrote:

                If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you

                It wouldn't be wrong choice if you design your GUI in C# and use unmanaged coding at back hand. Only question is, how you are integrating between two....?

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                Never mind - my own stupidity is the source of every "problem" - Mixture

                cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                A Offline
                A Offline
                ashish8patil
                wrote on last edited by
                #8

                .Net Com Ineroperability..? can please tell me good way..?

                T 1 Reply Last reply
                0
                • A ashish8patil

                  .Net Com Ineroperability..? can please tell me good way..?

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

                  you have flexibility of designing good gui using c#, which unmanaged vc++ doesn't provide you.. you one more way, if you know little bit of managed vc++, just write wrapper on your unmanged function using this.!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                  A 2 Replies Last reply
                  0
                  • T ThatsAlok

                    you have flexibility of designing good gui using c#, which unmanaged vc++ doesn't provide you.. you one more way, if you know little bit of managed vc++, just write wrapper on your unmanged function using this.!

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                    Never mind - my own stupidity is the source of every "problem" - Mixture

                    cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                    A Offline
                    A Offline
                    ashish8patil
                    wrote on last edited by
                    #10

                    Sorry Alok Sir I not get you. And is there any way i can run my gui in c#.net and whole back-end code will run in c++ (means it will not use CLR when backend code will run). Thanks for your reply.

                    1 Reply Last reply
                    0
                    • T ThatsAlok

                      you have flexibility of designing good gui using c#, which unmanaged vc++ doesn't provide you.. you one more way, if you know little bit of managed vc++, just write wrapper on your unmanged function using this.!

                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                      Never mind - my own stupidity is the source of every "problem" - Mixture

                      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                      A Offline
                      A Offline
                      ashish8patil
                      wrote on last edited by
                      #11

                      Hello Sir, Can you please tell me what is diff between "pinvoke for win32.dll " and "com interop" .which one is better.

                      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