| 发表于:2007-01-11 17: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#里调用,请问得如何做 |
|
|
|
|