111,094
社区成员




public delegate void CallBack(IntPtr a);
namespace DLLThreadPool
{
class Program
{
[DllImport("DLLDemo.dll", CharSet = CharSet.Auto)]
public static extern Int32 funcThreadPool(Int32 nPoolJobList, Int32 nPoolJobNum, Int32 nPoolThreadNum, CallBack cBack);
public static void fun_type1(IntPtr iPtr)
{
Thread.Sleep(50);
return ;
}
public static void Main(string[] args)
{
CallBack cb=new CallBack(Program.fun_type1);
int i = funcThreadPool(1000, 10000, 500, cb);
}
}
}