//mydll.cppint f(int a, char* b, int* c)
{
return(10);
}//mydll.def
LIBRARY MyDllEXPORTS
f @1
//c#
[DllImport("mydll.dll")]
public static extern int f(int a,StringBuilder b,ref int c);
static void Main(string[] args)
{
StringBuilder b=new StringBuilder(10);
int c=0;
Console.WriteLine("{0}",f(10,b,ref c));
}
{
return(10);
}//mydll.def
LIBRARY MyDllEXPORTS
f @1
//c#
[DllImport("mydll.dll")]
public static extern int f(int a,StringBuilder b,ref int c);
static void Main(string[] args)
{
StringBuilder b=new StringBuilder(10);
int c=0;
Console.WriteLine("{0}",f(10,b,ref c));
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货