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. How compile this managed c++ help urgently need [modified]

How compile this managed c++ help urgently need [modified]

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++comhelp
4 Posts 4 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.
  • G Offline
    G Offline
    G Makesh
    wrote on last edited by
    #1

    #using #using"CSharpHelloWorld.netmodule" using namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance -- modified at 4:57 Monday 19th November, 2007

    L H P 3 Replies Last reply
    0
    • G G Makesh

      #using #using"CSharpHelloWorld.netmodule" using namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance -- modified at 4:57 Monday 19th November, 2007

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

      "how compile" ?? what does that mean? Are you working through a book or tutorial? Provide a reference. If not find one and use it, I believe there are some good one here in the CodeProject Articles.

      1 Reply Last reply
      0
      • G G Makesh

        #using #using"CSharpHelloWorld.netmodule" using namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance -- modified at 4:57 Monday 19th November, 2007

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Whats the problem?

        1 Reply Last reply
        0
        • G G Makesh

          #using #using"CSharpHelloWorld.netmodule" using namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance -- modified at 4:57 Monday 19th November, 2007

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          What is the problem? Looks okay.

          "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          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