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. Mixing C++ and .Net at runtime -- is it possible ?

Mixing C++ and .Net at runtime -- is it possible ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpdotnetquestion
4 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.
  • E Offline
    E Offline
    ERLN
    wrote on last edited by
    #1

    I have written application on Visual C++ . It is mainly MFC Application. I can code .net also(with respect to C++ ) At runtime if .net framework is installed on target machine my MFC application has act as MFC .net application otherwise it act as Simple MFC application. Is it possible ? ( I don`t want to compile with .net because many of our customers not dependent on .net ) Expecting Suggestions

    CPalliniC I 2 Replies Last reply
    0
    • E ERLN

      I have written application on Visual C++ . It is mainly MFC Application. I can code .net also(with respect to C++ ) At runtime if .net framework is installed on target machine my MFC application has act as MFC .net application otherwise it act as Simple MFC application. Is it possible ? ( I don`t want to compile with .net because many of our customers not dependent on .net ) Expecting Suggestions

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

      ERLN wrote:

      my MFC application has act as MFC .net application

      What is a MFC .net application?

      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
      • E ERLN

        I have written application on Visual C++ . It is mainly MFC Application. I can code .net also(with respect to C++ ) At runtime if .net framework is installed on target machine my MFC application has act as MFC .net application otherwise it act as Simple MFC application. Is it possible ? ( I don`t want to compile with .net because many of our customers not dependent on .net ) Expecting Suggestions

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        If you have to work on machines without .NET... And you are prepared to program in MFC... And MFC works on machine with .NET... Then where's your problem? Iain.

        I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

        E 1 Reply Last reply
        0
        • I Iain Clarke Warrior Programmer

          If you have to work on machines without .NET... And you are prepared to program in MFC... And MFC works on machine with .NET... Then where's your problem? Iain.

          I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]

          E Offline
          E Offline
          ERLN
          wrote on last edited by
          #4

          Sorry for confustions. I have MFC Application. It will works fine with .Net Installed machine as well as Without .Net installaed machines. Now My need is. I want to create a application like the following MFC Application has to work on Machines not having .net (current working) In simple I need to use .net framework based code at .net installed machine otherwise i need to non .net based code it is at run time. how can i create a executable like that.

          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