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. managed c++ from c#

managed c++ from c#

Scheduled Pinned Locked Moved C#
csharpc++visual-studiohelpquestion
4 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.
  • P Offline
    P Offline
    picazo
    wrote on last edited by
    #1

    Hi, I have added a reference for a managed c++ dll to a c# project. I can view the c++ classes and their methods in the object browser. I can also create an instance of the class objects in c#. However, intellisense does not show the object's methods, and if I try to call them, I get an error about them not being defined. Anyone experienced this in the past? Any suggestions? Thanks,

    ----------------- Genaro

    C 1 Reply Last reply
    0
    • P picazo

      Hi, I have added a reference for a managed c++ dll to a c# project. I can view the c++ classes and their methods in the object browser. I can also create an instance of the class objects in c#. However, intellisense does not show the object's methods, and if I try to call them, I get an error about them not being defined. Anyone experienced this in the past? Any suggestions? Thanks,

      ----------------- Genaro

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Are you using the namespace they are in, or scoping it explicitly ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      P 1 Reply Last reply
      0
      • C Christian Graus

        Are you using the namespace they are in, or scoping it explicitly ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        P Offline
        P Offline
        picazo
        wrote on last edited by
        #3

        They are not wrapped in a namespace. Do they have to be?

        ----------------- Genaro

        C 1 Reply Last reply
        0
        • P picazo

          They are not wrapped in a namespace. Do they have to be?

          ----------------- Genaro

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I expect so. There's no global namespace in C#.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal 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