CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2010
    Posts
    1

    Pass a managed array as void**?

    Hi,

    I have a component(managed assembly) written in managed c++. the main function I use has the following signature:

    Code:
    namespace SomeNamespace
    {
       SomeRefClass::SomeFunction(void** 2dByteArray)
       {
        //Use 2dByteArray a lot!
       .
       .
       .
       }
    }
    I have to use this function from a C# program. the memory must be allocated before usage and is modified a lot in the function.

    what type of C# variable should I pass?

    Regards,
    Ali

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: Pass a managed array as void**?

    How about a two dimensional byte array?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured