【发布时间】:2009-04-22 18:07:22
【问题描述】:
我有以下 C 代码:
const BYTE* Items[3];
Items[0] = item1;
Items[1] = item2;
Items[2] = item3;
int result = Generalize(3, Items);
使用 Generalize 的签名为
int __stdcall Generalize(INT count, const BYTE * const * items);
使用 PInvoke 进行调用的最佳方式是什么?
【问题讨论】: