How to write Marshalling code for Function pointer in cpp?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kumarabhijit@gmail.com

    How to write Marshalling code for Function pointer in cpp?

    Hi,

    Can anyone help me about how to write Marshalling code for Function
    pointer in cpp?

    Thanks
    Abhijit

  • Mattias Sjögren

    #2
    Re: How to write Marshalling code for Function pointer in cpp?

    >Can anyone help me about how to write Marshalling code for Function
    >pointer in cpp?
    What kind of marshaling? Maybe you should post to the C++ group
    instead.


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • kumarabhijit@gmail.com

      #3
      Re: How to write Marshalling code for Function pointer in cpp?

      Hi Matt,

      Sorry for confusing you. I will like to elaborate more on this.

      I have one VC++ method/function
      DataRecvdOnCall Back(unsigned char * buffer, int *
      size)

      I need to use this callback method from C# space.For
      this purpose I am planning to write one delegate

      public delegate void DataRecvdCallBa ckDelegate(ref
      byte[] buffer,ref int size);

      can anyone tell me how to write
      Interoperabilit y/marshalling wrapper for it?

      Thanks
      Abhijit
      Mattias Sjögren wrote:
      Can anyone help me about how to write Marshalling code for Function
      pointer in cpp?
      >
      What kind of marshaling? Maybe you should post to the C++ group
      instead.
      >
      >
      Mattias
      >
      --
      Mattias Sjögren [C# MVP] mattias @ mvps.org
      http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      Please reply only to the newsgroup.

      Comment

      • kumarabhijit@gmail.com

        #4
        Re: How to write Marshalling code for Function pointer in cpp?

        No reply:-(

        Waiting for reply!
        Abhijit
        kumarabhijit@gm ail.com wrote:
        Hi Matt,
        >
        Sorry for confusing you. I will like to elaborate more on this.
        >
        I have one VC++ method/function
        DataRecvdOnCall Back(unsigned char * buffer, int *
        size)
        >
        I need to use this callback method from C# space.For
        this purpose I am planning to write one delegate
        >
        public delegate void DataRecvdCallBa ckDelegate(ref
        byte[] buffer,ref int size);
        >
        can anyone tell me how to write
        Interoperabilit y/marshalling wrapper for it?
        >
        Thanks
        Abhijit
        Mattias Sjögren wrote:
        >Can anyone help me about how to write Marshalling code for Function
        >pointer in cpp?
        What kind of marshaling? Maybe you should post to the C++ group
        instead.


        Mattias

        --
        Mattias Sjögren [C# MVP] mattias @ mvps.org
        http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
        Please reply only to the newsgroup.

        Comment

        Working...