请问高手,C++如何改写成C#
esnis 2007-01-11 05:53:47 详细是这样的,有一个C++开发的动态链接库,在C里调用是这样的
struct result_t{
int start;
int length;
unsigned char POS_id;
int word_ID;
};
新增一个调用函数:
TGWS_API const result_t * TGWS_ParagraphProcessA(const char *sParagraph,int *pResultCount);
3.具体的调用示例如下:
const result_t *pVecResult;
int nCount;
pVecResult=TGWS_ParagraphProcessA(sInput,&nCount);
for (int i=0;i<nCount;i++)
{
printf("Start=%d Length=%d Word_ID=%d POS_ID=%d\n",
pVecResult[i].start,
pVecResult[i].length,
pVecResult[i].word_ID,
pVecResult[i].POS_id
);
}
现在要在C#里调用,请问得如何做