Need Help: a very wierd Managed C++ interop problem# DotNet - 窗口里的风景
O*l
1 楼
DOTNET gurus, I really need your help on this wierd behavior.
We have a system written in native c++; The system calls to a COM component
to perform some calculations. In one of the methods, we need to cast a
struct as an array of bytes (BYTE *) and also passes the size of the array.
It all works fine until we link the system to a static library which is
written in Managed C++. The input parameters to the COM method got messed
up. It appears, the call tries to copy the input parameter data ov
We have a system written in native c++; The system calls to a COM component
to perform some calculations. In one of the methods, we need to cast a
struct as an array of bytes (BYTE *) and also passes the size of the array.
It all works fine until we link the system to a static library which is
written in Managed C++. The input parameters to the COM method got messed
up. It appears, the call tries to copy the input parameter data ov