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 to add a reference in VC++

How to add a reference in VC++

Scheduled Pinned Locked Moved Managed C++/CLI
c++tutorial
3 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.
  • K Offline
    K Offline
    kayhustle
    wrote on last edited by
    #1

    I am writing a managed wrapper for an unmanaged class. The unmanaged class is stored in a dll. At the top the of the .cpp file for the managed wrapper i have #using I've also added a reference to this dll using the Add References... option. However, when I compile, the compiler does not recognze my unmanaged class. Thanks

    B 1 Reply Last reply
    0
    • K kayhustle

      I am writing a managed wrapper for an unmanaged class. The unmanaged class is stored in a dll. At the top the of the .cpp file for the managed wrapper i have #using I've also added a reference to this dll using the Add References... option. However, when I compile, the compiler does not recognze my unmanaged class. Thanks

      B Offline
      B Offline
      BAIJUMAX
      wrote on last edited by
      #2

      hi, try this one before calling u r unmanaged methods #pragma UNMANAGED by baijumax;P

      K 1 Reply Last reply
      0
      • B BAIJUMAX

        hi, try this one before calling u r unmanaged methods #pragma UNMANAGED by baijumax;P

        K Offline
        K Offline
        kayhustle
        wrote on last edited by
        #3

        Thanks, but I actually found the answer in the article Consuming Unmanaged C++ Class Libraries from .NET Clients at this link: http://www.codeguru.com/Cpp/Cpp/cpp_managed/interop/article.php/c6867/[^]

        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