Declare Function RecvMsg_R Lib "E:\lovegame\pSrvPlatdll_r.dll" Alias "RecvMsg" (ByVal centerid As String, ByVal handset As String, ByVal msg As String, ByVal tm As String, ByVal dt As String) As Integer

解决方案 »

  1.   

    你是不是因该检查一下你的DLL呀,函数是不是占用了win2000的不允许写的内存地址
      

  2.   

    先按 zyl910(910:分儿,我来了!) (L2002)  的方法改。然后保证你传递的字符串已经有内容,而且内容要比准备取回的内容长或相等。否则肯定死……
    另,这种声明也可以:
    Declare Function RecvMsg_R Lib "E:\lovegame\pSrvPlatdll_r.dll" Alias "RecvMsg" (centerid As any, handset As any, msg As any,  tm As any, dt As any) As long