Click here to Skip to main content
15,889,872 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi
I have a manged c++ class which the main function I use implements a void** parameter. void** parameter points to a 2d array of bytes which is modified a lot after each function call and unfortunately the function is called frequently.

What scenario do you propose to pass a C# variable which can be directly modified by the managed c++ function?

Kind Regards.
Ali
Posted

If you pass the address of the array to the C++ class then it can directly access the information in the array, as long as the array contains basic types rather than C# class objects.
 
Share this answer
 
Ali Beirami wrote:
What scenario do you propose ...


I don't propose anything. Do you have a question?
 
Share this answer
 
Hi,

I mean I do not need direct code. Any suggestion that if it is your problem how would you approach it?

Thanks in advance
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900