我将下面的VB代码转化c#代码,老是报错,高手帮我转化一下,谢谢了Private Declare Function fnInitModem Lib "MonDem.dll" (ByVal comx As Long) As Long
[DllImport("MonDem.dll")]
//查询接收
public static unsafe extern int  fnReadMsgEx(int nPortNo, char *szHeader, char * szReadMsg);提示
The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?