导入DLL是不是这样呢?
[DllImport("Mos200Dll.dll")]
public static extern   void   GetScanPic(string sFile,int a);
[DllImport("Mos200Dll.dll")]
public static extern   void  OmrS(string[] args);
[DllImport("Mos200Dll.dll")]
public static extern  string[] OmrG()

解决方案 »

  1.   

    到入dll不是你那样的;因该是这样的:[DllImport("Mos200Dll.dll",EntryPoint="你想用的函数")]
    public static extern xxxx xxxxxx();
      

  2.   

    到入dll不是你那样的;因该是这样的:[DllImport("Mos200Dll.dll",EntryPoint="你想用的函数")]
    public static extern xxxx 你想用的函数();
      

  3.   

    我一个函数是给赋值的OmrS("\ D DDD")
    另一个函数是得返回值的sring aa=OmrG()
    这该如何写导入呢?