随笔分类 -  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 阅读(781) 评论(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 阅读(527) 评论(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 阅读(886) 评论(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 阅读(1179) 评论(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 阅读(631) 评论(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 阅读(2435) 评论(0) 推荐(0) 编辑
摘要:首先用vs2010建立win32项目,选择dll和空项目。 头文件add.h 源文件add.cpp 编译生成add.dll。 C#调用: 调试报错,执行没有错。 阅读全文
posted @ 2017-08-27 15:18 Dsp Tian 阅读(504) 评论(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 阅读(525) 评论(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 阅读(552) 评论(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 阅读(9704) 评论(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 阅读(556) 评论(0) 推荐(0) 编辑
摘要:1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; 3.Application.Exit 阅读全文
posted @ 2017-08-27 15:15 Dsp Tian 阅读(392) 评论(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 阅读(1092) 评论(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 阅读(4911) 评论(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 阅读(825) 评论(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 阅读(1944) 评论(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 阅读(760) 评论(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 阅读(767) 评论(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 阅读(435) 评论(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 阅读(504) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示