public struct result_t
{
   byte POS_id;
}result_t pVecResult; 
int nCount; 
pVecResult=TGWS_ParagraphProcessA(sInput,ref nCount); 不知道是不是这个意思  改错了莫怪~~

解决方案 »

  1.   

    详细是这样的,有一个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#里调用,请问得如何做