请高手帮忙!详见.
http://community.csdn.net/Expert/topic/4793/4793986.xml?temp=.6403162

解决方案 »

  1.   

    Have a try!
    [DllImport("xcode.dll")] 
    public static extern void DecodeKey([In]StringBuilder as_input,[In]StringBuilder as_key,[Out]StringBuilder as_output, [MarshalAs(UnmanagedType.I8)]long as_file); 
    [DllImport("xcode.dll")] 
    public static extern void CodeKey([In]StringBuilder as_input,[In]StringBuilder as_key,[Out]StringBuilder as_output, [MarshalAs(UnmanagedType.I8)]long as_file);
      

  2.   

    如果还不行的话,去掉long前面的修饰
      

  3.   

    头引用应该不会有问题,在2003都能用
    DLL库文件是否引用到项目里?
    在解决方案资源管理器里引用库文件试试