我从dll中引入一个Load 方法,但是这个方法名与this.Load重名。请问如何解。否则它总是报错:
Attempted to read or wrITe protected memory. This is often an indication that other memory is corrupt

解决方案 »

  1.   

    我从c++的dll引入的函数:
    public delegate void NativeCallback(byte c);
            public static NativeCallback callback = null;
     [DllImport(Constant.Dllname_amc, EntryPoint = "Load", SetLastError = true)]
     public extern static AMC_RETURN LoadEx(char[] pcFileName, out char[] pcError, NativeCallback fnFunc);
    使用的是否总是报错:
    Attempted to read or wrITe protected memory. This is often an indication that other memory is corrupt
      

  2.   

    out char[] pcError
    用stringbuilder类型
      

  3.   

    没遇到过,你 已经把名字改成LoadEx都还报错哇,怪了,给你顶一个,期待高手。
      

  4.   

    在c++中这个符号'&'表示什么?
    FT_PROGRAM_DATA 是一个struct,如何将下面的函数转成c#
    int EERead(FT_PROGRAM_DATA *psEEData_);