RE: passing string array to C++
- From: garyle@xxxxxxxxxxxxxxxxxxxx (Gary Lewis)
- Date: Mon, 27 Jun 2005 18:44:30 GMT
You wrote "Does this apply to all marshalling of passing arrays of
pointers? "
Arrays of references to objects are problematic for NETCF 1.0 since we don't
have the MarshalAs attribute to tell the CLR how to marshal the data that
the
data is referencing.
I suspect that the most straightforward implementation is the one I used -
let C
(not C++) manage the array and expose only array elements to Managed code
via C-language wrapper functions. If you use C++ you will need to deal with
keeping
a copy of the "this" pointer around in your C# code during the life of your
C++ class
and handle (or alias) mangled names. Writing a set of C-language collection
management functions should be fairly simple.
Gary
.
- References:
- passing string array to C++
- From: Bruce Parker
- RE: passing string array to C++
- From: Gary Lewis
- RE: passing string array to C++
- From: Bruce Parker
- passing string array to C++
- Prev by Date: tranforming mouse events
- Next by Date: How to pass parameters from Managed C++ to C#?
- Previous by thread: RE: passing string array to C++
- Next by thread: RE: passing string array to C++
- Index(es):
Relevant Pages
|