C# 窗口消息传递
与MFC类似,通过SendMessage和窗口句柄实现消息之间的传递当然,这东西可以在线程和进程间通讯,实现线程消息的互相传递,文件系统升级卸载等功能作用空间using System.Runtime.InteropServices; // 导入user32.dll用到主窗体public partial class Form1 : Form{ …… 阅读全文
与MFC类似,通过SendMessage和窗口句柄实现消息之间的传递当然,这东西可以在线程和进程间通讯,实现线程消息的互相传递,文件系统升级卸载等功能作用空间using System.Runtime.InteropServices; // 导入user32.dll用到主窗体public partial class Form1 : Form{ …… 阅读全文
sFile = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Log\\" + sFile; sFolder = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "Log\\"; if (!Directory.Exists(sFolder)) …… 阅读全文
1. 类(class)可见性修饰符: public—在所有类中可见,在其他包中可以用import导入。缺省—就是没有修饰符,在同一个包中的类中可见,在其他包中不能用import导入。修饰符:final—终态类,表示该类不能被继承 abstract—抽象类,不能新建对象 2. 变量(variable)Java中变量有两种,方法变量和字段变量方法变量只能用一 …… 阅读全文
声明变量 declare @@名称 类型例如:declare @@MyId intif exists(语句)---else---begin语句end插入语句试返回自增键;set @@MyId=@@IDENTITY …… 阅读全文