会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
程序之家
os .net vc++ asm driver wireless
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
56
57
58
59
60
61
62
63
64
···
78
下一页
2007年11月5日
改变共享目录的登录用户
摘要: 有时候会发现用了guest的登录一个共享目录时,希望更改其他用户去登录 却因为登录窗口没有谈出来而改变不了 其实只要在命令行里运行 net use * /del 把那些连接删掉就可以用其他用户去登录了
阅读全文
posted @ 2007-11-05 11:39 ahuo
阅读(461)
评论(0)
推荐(0)
2007年11月1日
VC中Radio控件的用法[转]
摘要: 先为对话框加上2个radio button,分别是Radio1和Radio2。 问题1:如何让Radio1或者Radio2默认选上?如何知道哪个被选上了? 关键是选上,“默认”只要放在OnInitDialog()即可。三种方法可以让它选上, 第一种: ((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);//选上 ((CButton *)GetDl...
阅读全文
posted @ 2007-11-01 14:23 ahuo
阅读(1670)
评论(0)
推荐(0)
2007年10月31日
生成指定长度的随机字符串
摘要: char buf[33]={"\0"}; srand(time(NULL)); for (int i=0;i48) || (c66) || (c97)) { break; } c=rand()%122; } buf[j]=c; } printf("%s\n",buf); }
阅读全文
posted @ 2007-10-31 17:39 ahuo
阅读(936)
评论(0)
推荐(0)
2007年10月24日
C++的辅助工具介绍
摘要: 1 文档类 (1) Doxygen 参考站点:http://www.doxygen.org Doxygen是一种适合C风格语言(如C++、C、IDL、Java甚至包括C#和PHP)的、开放源码的、基于命令行的文档产生器。 (2) C++2HTML 参考站点:http://www.bedaux.net/cpp2html/ 把C++代...
阅读全文
posted @ 2007-10-24 12:35 ahuo
阅读(1994)
评论(0)
推荐(0)
Boost的介绍
摘要: Boost中比较有名气的有这么几个库: Regex 正则表达式库 Spirit LL parser framework,用C++代码直接表达EBNF Graph 图组件和算法 Lambda 在调用的地方定义短小匿名的函数对象,很实用的functional功能 concept check 检查泛型编程中的concept Mpl 用模板实现的元编程框架 Thread 可移植的C++多线程库 Pytho...
阅读全文
posted @ 2007-10-24 12:02 ahuo
阅读(2357)
评论(0)
推荐(0)
2007年10月23日
内存数据保存到文件
摘要: #include #include int main( void ) { FILE *stream; typedef struct _tt{ int a; int b; char buf[20]; }tt; tt temp; temp.a=10; temp.b=20; strcpy(temp.buf,"hello"); int c=sizeof(temp); ...
阅读全文
posted @ 2007-10-23 15:33 ahuo
阅读(718)
评论(0)
推荐(0)
2007年10月19日
std:string 用法
摘要: #include "stdafx.h" #include using namespace std; int main(int argc, char* argv[]) { printf("Hello World!\n"); string s1="hello world!"; printf("s1.find('o')=%d \n",s1.find('o')); printf("s1.f...
阅读全文
posted @ 2007-10-19 17:21 ahuo
阅读(1039)
评论(0)
推荐(0)
2007年10月17日
vc 获得和设置系统环境变量
摘要: printf("%s\n%s\n",getenv("temp"),getenv("windir")); _putenv( "LIB=c:\\mylib;c:\\yourlib" );
阅读全文
posted @ 2007-10-17 11:51 ahuo
阅读(3001)
评论(0)
推荐(0)
2007年10月16日
rand和srand
摘要: #include "stdafx.h" #include #include int main(int argc, char* argv[]) { printf("Hello World!\n"); srand(time(0)); for (int i=0;i<10;i++) { printf("%x ",(int)rand()%1000); } printf("\n"); ...
阅读全文
posted @ 2007-10-16 16:51 ahuo
阅读(275)
评论(0)
推荐(0)
2007年10月15日
枚举共享目录
摘要: #include #include #include void main( int argc, CHAR *lpszArgv[ ]) { PSHARE_INFO_502 BufPtr,p; NET_API_STATUS res; //LPTSTR lpszServer = NULL; DWORD er=0,tr=0,resume=0, i; do // begin do {...
阅读全文
posted @ 2007-10-15 09:54 ahuo
阅读(391)
评论(0)
推荐(0)
2007年9月23日
AT指令集及S寄存器
摘要: 指令 描述 ...
阅读全文
posted @ 2007-09-23 17:39 ahuo
阅读(1264)
评论(0)
推荐(0)
2007年9月21日
C# 发送WM_COPYDATA消息
摘要: using System.Runtime.InteropServices; [DllImport("User32.dll", EntryPoint = "FindWindow")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImpor...
阅读全文
posted @ 2007-09-21 17:40 ahuo
阅读(785)
评论(1)
推荐(0)
2007年9月20日
驱动访问
摘要: Q 在NT/2000/XP中,我想用VC编写应用程序访问硬件设备,如获取磁盘参数、读写绝对扇区数据、测试光驱实际速度等,该从哪里入手呢? A 在NT/2000/XP中,应用程序可以通过API函数DeviceIoControl来实现对设备的访问—获取信息,发送命令,交换数据等。利用该接口函数向指定的设备驱动发送正确的控制码及数据,然后分析它的响应,就可以达到我们的目的。 DeviceIoContr...
阅读全文
posted @ 2007-09-20 15:43 ahuo
阅读(975)
评论(0)
推荐(0)
2007年9月18日
关闭map的编译警告
摘要: 用的stl是会产生很多的警告 可以通过下面的代码来禁止相应的警告 #pragma warning (disable:4786) #include #include using namespace std;
阅读全文
posted @ 2007-09-18 14:06 ahuo
阅读(641)
评论(1)
推荐(0)
2007年9月17日
NMAKE命令行编译
摘要: VC98"BinVCVARS32.BAT 设置环境变量 Nmake /f filename.mak NMAKE 选项 下表描述了 NMAKE 选项。选项前有斜杠 (/) 或短划线 (-),并且不区分大小写。使用 !CMDSWITCHES 更改生成文件或 Tools.ini 中的选项设置。 选项 ...
阅读全文
posted @ 2007-09-17 09:04 ahuo
阅读(2663)
评论(2)
推荐(0)
上一页
1
···
56
57
58
59
60
61
62
63
64
···
78
下一页
公告