- 博客(6)
- 资源 (8)
- 收藏
- 关注
原创 windows 计算目录大小
void DirectoryInfo::CalculateSize(std::string _path) { WIN32_FIND_DATAA data; HANDLE sh = NULL; sh = FindFirstFileA((_path+"\\*").c_str(), &data); if (sh == INVALID_HANDLE_VALUE ) { return;
2013-05-28 11:54:00 1142
转载 sc创建服务
用sc create----创建一个服务(增加到注册表中) 如下:在命令行模式下执行: sc create TestService binpath= "c:\in estapp.exe" displayname= "TestService" depend= Tcpip start= auto 注意这里的格式,“=”后面是必须空一格的,否则会出现错误。 在提示建立成功后
2013-05-21 10:28:23 3239
转载 windows 追踪ip工具
TRACERT 命令的工作原理TRACERT 诊断实用程序确定通过各种到目标 IP 生存时间 (TTL) 值的 Internet 控制消息协议 (ICMP) 回显数据包发送到的目标所使用的路由。沿路径的每个路由器,则需要至少 1 的数据包上的 TTL 递减转发,所以 TTL 是有效地跃点计数之前。数据包上的 TTL 到达 0 时,路由器应该将 ICMP 已超时消息发送回源计算机。TRA
2013-05-21 09:19:10 3276
原创 char*转换为string^
Hi,Use String^ strNew = gcnew String(charStriing);//Here charString is ur char*That's it.
2013-05-09 15:12:38 1020
原创 string 转char*
In your sample let 'p' point to the address of the first char of string 'l':Code:string l="Pranav"; char *p; p=&l[0];As you can see it is possible, however, you have to be carful with this a
2013-05-03 14:48:09 676
原创 标准c判断目录是否存在
#include // For access(). #include // For stat(). #include // For stat(). #include #include using namespace std; string strPath; cout > strPath; if ( access( strPath.c_str(), 0 ) == 0 ) { struc
2013-05-03 11:47:00 861
C#de教材C#de教材
2009-04-27
C++test rulewizard教材
2008-09-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人