2017年4月25日

DnsFlushResolverCache 清除windows DNS缓存

摘要: 效果等同于ipconfig /flushdns 命令。DnsFlushResolverCache 函数是在Dnsapi.dll导出,该函数没有任何参数。MSDN中找不到他,看来是个Undocumented函数,函数原型: BOOL WINAPI DnsFlushResolverCache(VOID) 阅读全文

posted @ 2017-04-25 21:47 狼爱上羊 阅读(1639) 评论(0) 推荐(0) 编辑

2012年11月25日

vs2008 安装出错 Microsoft Visual Studio Web 组件安装失败

摘要: 解决方法: 1、找到VS2008的安装文件X:/WCU/WebDesignerCore/WebDesignerCore.EXE, 用winrar解压到硬盘的任意地方,其中有个文件夹office.zh-cn。 2、下载一个office2007的安装镜像文件,其中也有一个office.zh-cn文件夹,用它覆盖第一步中找到的文件夹。 3、运行在第一步解压的文件夹中的setup.exe 4、重新... 阅读全文

posted @ 2012-11-25 15:18 狼爱上羊 阅读(169) 评论(0) 推荐(0) 编辑

2012年11月18日

[c/c++]格式化字符串到字符串数组

摘要: int splitstr( char *s,const char *d,char **str ,int *num){ char *p=NULL; int arrNum=0; if (s == NULL || strlen(s) == 0) return 0; if (d == NULL || strlen(d) == 0) return 0; p=strto... 阅读全文

posted @ 2012-11-18 18:23 狼爱上羊 阅读(483) 评论(0) 推荐(0) 编辑

2012年11月15日

[c/c++]获取任意一年一个月中的天数

摘要: int GetDaysInMonth(int y,int m){ int d; int day[]= {31,28,31,30,31,30,31,31,30,31,30,31}; if (2==m) { d=(((0==y%4)&&(0!=y%100)||(0==y%400))?29:28); } else { d=day... 阅读全文

posted @ 2012-11-15 21:26 狼爱上羊 阅读(4482) 评论(0) 推荐(1) 编辑

2012年11月12日

c字符串替换strstr strncpy

摘要: #include <stdio.h> #include <string.h>int main () { char str[] ="This is a simple string"; char * pch; pch = strstr (str,"simple"); puts(pch); strncpy (pch,"sample",6); puts(pch); puts (str); retur... 阅读全文

posted @ 2012-11-12 22:49 狼爱上羊 阅读(5449) 评论(0) 推荐(0) 编辑

我常去的编程技术网站[最近更新:2011.07.10

摘要: [序言] 其实大家都可以成为一个厉害的软件开发人员,希望大家通过了解我提供的这些网站找到自己的兴趣爱好,以增强自己的信心。 [建议] 为了能让更多的朋友看到此链接,如果大家是csdn用户,那么请选择[收藏]来收录本文章,以获得csdn的收藏排名.那么就会有更多的朋友看到了.知识是分享的......... 阅读全文

posted @ 2012-11-12 22:48 狼爱上羊 阅读(157) 评论(0) 推荐(0) 编辑

开源网站大全

摘要: http://wwww.web-java.com http://www.open-open.com/ sourceforge http://www.sourceforge.net java.net http://www.java.net www.eclipse.org www.opensource.org http://strutstestcase.source... 阅读全文

posted @ 2012-11-12 22:48 狼爱上羊 阅读(399) 评论(0) 推荐(0) 编辑

vc小代码

摘要: 1.获取命令行参数 LPSTR lpCmdLine=GetCommandLine(); printf("启动参数为:%s",lpCmdLine);2.遍历CStringArray数组 CStringArray a;for(int m=0;m<a.GetSize();m++){}3.动态加载DLL函数 static HINSTANCE hinstDLL; typedef BOOL (CA... 阅读全文

posted @ 2012-11-12 22:48 狼爱上羊 阅读(568) 评论(0) 推荐(0) 编辑

Windows rootkits 时代来临(英)

摘要: SecurityFocus interviews Greg Hoglund and Jamie Butler on the state of Windows rootkits and how quickly they have evolved. Watch for some detailed Infocus technical articles on the subject of rootkit... 阅读全文

posted @ 2012-11-12 22:48 狼爱上羊 阅读(287) 评论(0) 推荐(0) 编辑

sprintf函数用法

摘要: CString a("狼爱上羊"); int b=a.Find("羊"); char c[2]; sprintf(c,"%d",b); //sprintf 把格式化的数据写入某个字符串 //int sprintf ( char * str, const char * format, ... ); // 函数原型: int spri... 阅读全文

posted @ 2012-11-12 22:47 狼爱上羊 阅读(163) 评论(0) 推荐(0) 编辑

导航