asp.net(c#),不安全代码只会中使用...?
我在asp.net(c#)中调用dll,例如:
[DllImport("kernel32.dll",CharSet=System.Runtime.InteropServices.CharSet.Auto)]
private unsafe static extern int FormatMessage(int dwFlags,
ref IntPtr lpSource,
int dwMessageId,
int dwLanguageId,
ref String lpBuffer, int
nSize,
IntPtr *Arguments);
编译时,系统老是提示“不安全代码只会在使用/unsafe编译的情况下出现”,是不是我得用另外的方法来编译程序呢,还是说...?
问题点数:0、回复次数:0Top




