我强迫在C#库中公开一些方法,以便它们可以从用C++编写的外部程序(VC++ 6.0)中使用。因此,我创建了一个混合程序集,迄今为止工作得很好,但是对于返回.NET对象数组的方法我有一些麻烦。 方法的.NET签名是: public Results[] Measure(String model, String identifier);
哪里Results本身是: public class Res
我有一个混合模式的C++/CLI类和接口,我想从C#中使用。该接口的定义如下: public interface class IMapRenderingInterfacer
{
...
property int CurrentCacheSize { int get(); };
...
};
实现类有这个声明在其头文件: public ref class Map
我有一个非托管类,它接受一个指向内存的指针作为其存储空间。 例如 class MemBlock
{
void* mpMemoryBlock;
// Various other variables that manipulate the memory block goes here.
public:
MemBlock(void* pMemoryBlock) :