随笔分类 -  C#

摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication1 { public partial class WebFor... 阅读全文
posted @ 2017-08-27 15:25 Dsp Tian 阅读(785) 评论(1) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2017-08-27 15:24 Dsp Tian 阅读(534) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2017-08-27 15:24 Dsp Tian 阅读(896) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2017-08-27 15:24 Dsp Tian 阅读(1184) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO... 阅读全文
posted @ 2017-08-27 15:23 Dsp Tian 阅读(633) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Dr... 阅读全文
posted @ 2017-08-27 15:22 Dsp Tian 阅读(2446) 评论(0) 推荐(0)
摘要:首先用vs2010建立win32项目,选择dll和空项目。 头文件add.h 源文件add.cpp 编译生成add.dll。 C#调用: 调试报错,执行没有错。 阅读全文
posted @ 2017-08-27 15:18 Dsp Tian 阅读(514) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { Console.Write(DateTime.Now); Console.ReadKey... 阅读全文
posted @ 2017-08-27 15:17 Dsp Tian 阅读(529) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int a = 5; unsafe { int* p... 阅读全文
posted @ 2017-08-27 15:17 Dsp Tian 阅读(558) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Wind... 阅读全文
posted @ 2017-08-27 15:16 Dsp Tian 阅读(9734) 评论(0) 推荐(0)
摘要:using System; using System.IO; using System.Diagnostics; namespace ConsoleApplication { class Program { static void Main(string[] args) { string dst = "c:/123.exe"... 阅读全文
posted @ 2017-08-27 15:16 Dsp Tian 阅读(559) 评论(0) 推荐(0)
摘要:1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.Exit 阅读全文
posted @ 2017-08-27 15:15 Dsp Tian 阅读(399) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Wind... 阅读全文
posted @ 2017-08-27 15:15 Dsp Tian 阅读(1097) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Diagnostics; using System.Wind... 阅读全文
posted @ 2017-08-27 15:14 Dsp Tian 阅读(4923) 评论(0) 推荐(0)
摘要:using System; using System.Runtime.InteropServices; using System.Windows.Forms; namespace ConsoleApplication1 { class Program { public struct POINT { public int x... 阅读全文
posted @ 2017-08-27 15:14 Dsp Tian 阅读(834) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2017-08-27 15:14 Dsp Tian 阅读(1953) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Wind... 阅读全文
posted @ 2017-08-27 15:13 Dsp Tian 阅读(773) 评论(0) 推荐(0)
摘要:using System; using System.Runtime.InteropServices; namespace ConsoleApplication { class Program { [DllImport("winmm.dll")] public static extern uint mciSendString(string lps... 阅读全文
posted @ 2017-08-27 15:12 Dsp Tian 阅读(775) 评论(0) 推荐(0)
摘要:转自:http://www.cnblogs.com/netlyf/archive/2011/06/22/2086718.html 一、获取当前文件的路径 string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe 阅读全文
posted @ 2017-08-27 15:12 Dsp Tian 阅读(447) 评论(0) 推荐(0)
摘要:using System; using System.Net; using System.Net.Mail; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { MailMes... 阅读全文
posted @ 2017-08-27 15:11 Dsp Tian 阅读(512) 评论(0) 推荐(0)