![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
zhou92946
ffffffffffffffffffffffffffffffff
展开
-
C#委托delegate
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading;namespace ThreadTest { class Program { public d转载 2016-01-26 09:51:45 · 299 阅读 · 0 评论 -
c++.dll打印日志到c#界面,使用回调函数
c#代码:public delegate void LogCallBack(string logInfo); private LogCallBack Log = null;// 成员变量 Log = new LogCallBack(LogPrint);// LogPrint为c#日志打印函数 AppContext.SetDisplayLog(Log);// 调用c++方法 private voi原创 2016-04-22 13:58:58 · 2666 阅读 · 0 评论 -
c# 界面假死
参考博客地址: http://www.cnblogs.com/blosaa/archive/2013/05/30/3107381.htmlControl.Invoke()方法UI线程在执行时,会阻塞当前做事线程Control.BeginInvoke()方法UI线程在执行时,做事线程仍会执行 借用原博客中的话: 因此,我们可以想到。如果要异步取耗费长时间的数据,比如从数据库中读大量数据,我们应该转载 2016-11-01 17:27:51 · 1260 阅读 · 0 评论