上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 76 下一页
摘要: svcs –a |more # 可以列出当前所有的服务: STATE STIME FMRI legacy_run 1:58:26 lrc:/etc/rcS_d/S50sk98sol ... 阅读全文
posted @ 2007-09-11 15:17 ahuo 阅读(1345) 评论(0) 推荐(0) 编辑
摘要: /usr/X/bin/kdmconfig 按右 选择Xsun Server Change Video Device / Monitor 按提示修改 保存 阅读全文
posted @ 2007-09-11 14:57 ahuo 阅读(1482) 评论(0) 推荐(0) 编辑
摘要: 目前的状态是: # inetadm | grep telnet 启动服务: # svcs enable svc:/network/telnet:default solaris的telnet服务启动却登录失败 在/etc/default/login 把CONSOLE=/DEV/CONSOLE注释掉就可以了 阅读全文
posted @ 2007-09-10 17:50 ahuo 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: DllTest.rar dll1.h #ifdef DLL1_API #else #define DLL1_API _declspec(dllimport) #endif DLL1_API int add(int a,int b); DLL1_API int sub (int a,int b); class DLL1_API PO //导出整个类 { public: int outpu... 阅读全文
posted @ 2007-09-09 17:51 ahuo 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Font fn = new Font("", 12,FontStyle.Bold); textBox.Font = fn; 阅读全文
posted @ 2007-09-09 12:50 ahuo 阅读(5889) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; namespace CEncrypt { public class Encrypt { public Encrypt() { } /**//// /// 加密 ///... 阅读全文
posted @ 2007-09-07 12:06 ahuo 阅读(385) 评论(0) 推荐(0) 编辑
摘要: Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; //設定程序名 p.StartInfo.Arguments = "/c " command; //設定程式執行參數 p.StartInfo.UseShellExecute = false; //關閉Shell的使用 p.StartInfo.RedirectStandardIn... 阅读全文
posted @ 2007-09-06 16:02 ahuo 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: BOOL WriteConsole( HANDLE hConsoleOutput, const VOID* lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved ); Parameters hConsoleOutput [in] Handle to th... 阅读全文
posted @ 2007-09-06 10:40 ahuo 阅读(2842) 评论(0) 推荐(0) 编辑
摘要: 注册表的操作,API为我们提供了大约25个函数。 他提供了对注册表的读取,写入,删除,以及打开注册表及键值时所有函数, 并且可以达到对注册表的备份,连接和对远端注册表进行查看等等。 注册表对整个系统十分重要,你在进行操作时,一定要先考虑清楚。 这些函数有: RegCloseKey RegConnectRegistry RegCreateKey RegCreateKeyEx RegDelet... 阅读全文
posted @ 2007-09-05 17:06 ahuo 阅读(2964) 评论(1) 推荐(0) 编辑
摘要: 补丁更新选项的禁用与恢复 有时会看到更新选项不能更改 只要删除HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\WindowsUpdate\AU 下的AUOptions就可以修改了 阅读全文
posted @ 2007-09-04 14:16 ahuo 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); Debug.AutoFlush = true; Debug.WriteLine("start..!"); 阅读全文
posted @ 2007-09-04 11:21 ahuo 阅读(1248) 评论(0) 推荐(0) 编辑
摘要: telnet 客户端 #define NUL 0 #define BEL 7 #define BS 8 #define HT 9 #define LF 10 #define VT 11 #define FF 12 #define CR 13 #define SE 240 #define NOP 241 #defi... 阅读全文
posted @ 2007-09-03 22:44 ahuo 阅读(3374) 评论(2) 推荐(0) 编辑
摘要: Windows Update Error Codes Error Code Dec Error Code Error String Description 0x000000... 阅读全文
posted @ 2007-09-03 15:36 ahuo 阅读(20484) 评论(8) 推荐(0) 编辑
摘要: 不知你是否用过这样的程序,他们本身并没有解压缩的功能,而是调用DOS程序PKZIP完成ZIP包的解压缩。但是在程序运行时又没有DOS控制台的窗口出现而且一切本应该在DOS下显示的信息都出现在了那个安装程序的一个文本框里。这种设计既美观又可以防止少数眼疾手快的用户提前关了你的DOS窗口。 现在就来讨论一下,如何用匿名管道技术实现这个功能。 管道技术由来已久,相信不少人对DOS命令里... 阅读全文
posted @ 2007-09-03 11:45 ahuo 阅读(3046) 评论(1) 推荐(0) 编辑
摘要: 本文解释如何重新从 C 程序, 定向到文件 stdout 再恢复原始 stdout 同一程序中稍后。 C 函数通常用于重定向 stdout 或 stdin 是 freopen()。 将 stdout 重定向到文件称为 FILE.TXT, 使用以下调用: freopen( "file.txt", "w", stdout ); 该语句导致所有后续输出, 向 stdout, 它通常定向到转到 F... 阅读全文
posted @ 2007-09-03 10:08 ahuo 阅读(620) 评论(0) 推荐(0) 编辑
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 76 下一页