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. Passing unsigned int* from Native C++ to Managed C++

Passing unsigned int* from Native C++ to Managed C++

Scheduled Pinned Locked Moved Managed C++/CLI
c++tutorial
3 Posts 3 Posters 3 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
    paulpraveen
    wrote on last edited by
    #1

    Hi, I am looking for passing unsigned int* to managed C++ app Ex: Native C++: void func(unsigned int * data) { //Here I have access to managed C++ class and I would like to know how to pass data to this class managedwrapper->managedFunc( need to pass data) } ref class ManagedWrapper { managedFunc(get the data here) { //how to get the data here. } } Thanks, Paul

    Richard Andrew x64R L 2 Replies Last reply
    0
    • P paulpraveen

      Hi, I am looking for passing unsigned int* to managed C++ app Ex: Native C++: void func(unsigned int * data) { //Here I have access to managed C++ class and I would like to know how to pass data to this class managedwrapper->managedFunc( need to pass data) } ref class ManagedWrapper { managedFunc(get the data here) { //how to get the data here. } } Thanks, Paul

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

      This article may help: Using C# from native C++ with the help of C++/CLI[^]

      The difficult we do right away... ...the impossible takes slightly longer.

      1 Reply Last reply
      0
      • P paulpraveen

        Hi, I am looking for passing unsigned int* to managed C++ app Ex: Native C++: void func(unsigned int * data) { //Here I have access to managed C++ class and I would like to know how to pass data to this class managedwrapper->managedFunc( need to pass data) } ref class ManagedWrapper { managedFunc(get the data here) { //how to get the data here. } } Thanks, Paul

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You just pass it as is, it is up to the managed code to read the contents. See http://msdn.microsoft.com/en-us/magazine/cc164193.aspx[^] for further details.

        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