posted @ 2007-07-06 13:46 answer 阅读(1926) 评论(2) 推荐(0) 编辑
摘要:
1 using System; 2 using System.Runtime.InteropServices; 3 4 class Sound 5 { 6 private enum Flags 7 { 8 SND_SYNC = 0x0000, /* play synchronously (default) */ 9 SND_ASYNC = 0x... 阅读全文
摘要:
1 using System; 2 using System.Runtime.InteropServices; 3 4 class Mutex 5 { 6 [DllImport("coredll.Dll")] 7 private static extern int GetLastError(); 8 9 [DllImport("coredll.Dll")]10 ... 阅读全文
posted @ 2007-07-06 13:40 answer 阅读(1895) 评论(3) 推荐(0) 编辑
摘要:
1 using System; 2 using System.Runtime.InteropServices; 3 4 class SysDateTime 5 { 6 private struct SYSTEMTIME 7 { 8 public ushort wYear; 9 public ushort wMonth;10 p... 阅读全文
posted @ 2007-07-06 13:33 answer 阅读(1121) 评论(0) 推荐(0) 编辑
摘要:
最近在做Bluetooth开发,从网络找到"Bluetooth for Programmers"这本开发手册,个人觉得蛮不错的,适合像我这样的新手看. :)下载 阅读全文
posted @ 2007-04-03 17:30 answer 阅读(424) 评论(0) 推荐(1) 编辑
摘要:
转自:http://www.pconline.com.cn/pcedu/empolder/gj/vc/0509/698632_1.html 作者:宋宝华 出处:PConline 问:本文主要讲解什么内容? 答:本文详细介绍了DLL编程的方方面面,努力学完本文应可以对DLL有较全面的掌握,并能编写大多数DLL程序。 问:如何看本文? 答:本文每一个主题的讲解都附带了源代码例程,可以随文下载(每... 阅读全文
posted @ 2007-03-02 09:46 answer 阅读(1229) 评论(2) 推荐(0) 编辑
摘要:
PC上获取程序当前运行目录,常用作法: 1> path = System.Windows.Forms.Application.StartupPath; //不包括EXE的名称 2> path = System.Windows.Forms.Application.ExecutablePath; //包括EXE的名称 3> path = System.Reflection.Assembl... 阅读全文
posted @ 2007-02-13 10:08 answer 阅读(2199) 评论(5) 推荐(0) 编辑
摘要:
SMTP.PHP debug = FALSE; $this->smtp_port = $smtp_port; $this->relay_host = $relay_host; $this->time_out = 30; //is used in fsockopen() # $this->auth = $auth... 阅读全文
posted @ 2007-01-31 21:54 answer 阅读(657) 评论(3) 推荐(0) 编辑