摘要:
在本次开发中,向服务器上传文件,使用二进制流形式上传至服务器。本因为异步,还添加了多线程,虽然用起来没问题,但是有很多不足之处。 public class FtpHelper { #region 属性 string ftpUserName; string ftpServerIP; string ftpPassword; string ftpRemotePath; #endregion public FtpHelper() { //读取配置文件 ... 阅读全文
摘要:
[DllImport("User32.dll",CharSet= CharSet.Auto)]public static extern int GetWindowThreadProcessId(IntPtr hwnd,out int ID);//传入一个应用程序excel对象public static void Kill(Excel.Application excel){ IntPtr t=new IntPtr(excel.Hwnd); int k=0; GetWindowThreadProcessId(t,out k); System.Diagnostics.Proces 阅读全文