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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Managed Extensions in VS2008 ?

Managed Extensions in VS2008 ?

Scheduled Pinned Locked Moved Managed C++/CLI
tutorialcsharpc++comhelp
5 Posts 2 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
    gvanto
    wrote on last edited by
    #1

    I have a class in C++ (unmanaged) which I would like to place a wrapper around in managed (visual) C++ in order to create a dll which I can use in C# applications as a class library. I'm having quite a bit of trouble getting this to work by following MSDN's article here: http://msdn.microsoft.com/en-us/library/aa712961%28VS.71%29.aspx[^] and was wondering if this is even possible in VS2008? If there's a tutorial showing how to do this I'd be greatly interested in seeing it. Thanks for any help / advice Gvanto

    Richard Andrew x64R 1 Reply Last reply
    0
    • G gvanto

      I have a class in C++ (unmanaged) which I would like to place a wrapper around in managed (visual) C++ in order to create a dll which I can use in C# applications as a class library. I'm having quite a bit of trouble getting this to work by following MSDN's article here: http://msdn.microsoft.com/en-us/library/aa712961%28VS.71%29.aspx[^] and was wondering if this is even possible in VS2008? If there's a tutorial showing how to do this I'd be greatly interested in seeing it. Thanks for any help / advice Gvanto

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      I've done this several times. If you have a specific question, I'd be glad to do what I can to help.

      G 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        I've done this several times. If you have a specific question, I'd be glad to do what I can to help.

        G Offline
        G Offline
        gvanto
        wrote on last edited by
        #3

        Hi Richard, I'm just after an example of how to do it. Came across this: Managing the Unmanaged Code[^] In VS2008, what project do I need to create to get started in this? Cheers gvanto

        Richard Andrew x64R 1 Reply Last reply
        0
        • G gvanto

          Hi Richard, I'm just after an example of how to do it. Came across this: Managing the Unmanaged Code[^] In VS2008, what project do I need to create to get started in this? Cheers gvanto

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          You create a new C++ project (MFC allowable) and then once it's created, go into the project properties and enable CLR support. Now your C++ project can mix managed and unmanaged code.

          G 1 Reply Last reply
          0
          • Richard Andrew x64R Richard Andrew x64

            You create a new C++ project (MFC allowable) and then once it's created, go into the project properties and enable CLR support. Now your C++ project can mix managed and unmanaged code.

            G Offline
            G Offline
            gvanto
            wrote on last edited by
            #5

            thanks Richard with some fiddling got it working! pretty stoked, the possibilities are now endless :-)

            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