Shailendra Singh
asked on
crate a Safe array to send data from C++ to C# interface.
I have a C# interface exposed to C++ via COM (tlb file),In this interface function i want to send array of a Object s Object .Class of this object is complex and have different datatypes.I am using Connection pointer for call backs. Now my point is how can i use Safearrays to transfer data from C++ to C# UI.
But not sure if you're looking for something like this:
https://limbioliong.wordpress.com/2011/08/14/returning-an-array-of-strings-from-c-to-c-part-2/
https://limbioliong.wordpress.com/2011/08/14/returning-an-array-of-strings-from-c-to-c-part-2/
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
where 500 is the size of the array.