Monday 15 June 2015

c++ cli - how to return byte array , uint value from c# dll, dll called by c++/cli -



c++ cli - how to return byte array , uint value from c# dll, dll called by c++/cli -

i writing c# dll calculate , produce:-

-byte array [byte array] -unit [2 byte error code] -bool [true/false success , failure]

this function called c++/cli project. function can homecoming 1 value need these 3 values after c# function execute.

what function prototype in c# , how called c++/cli code.

thanks in advance

maybe can utilize out modifier.

void mymethod(out byte[] ba, out short code, out bool success) { ... }

as here, phone call be:

array<system::byte>^ ba; int16 code; bool success; myclass::mymethod(ba, code, success);

i tested it. hope helps.

c# c++-cli

No comments:

Post a Comment