会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
张振华
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2016年7月23日
C#中DataTable转换为string
摘要: DataTable dt = new DataTable(); DataSet ds = new DataSet(); ds.Tables.Add(dt); System.IO.StringWriter sw = new System.IO.StringWriter(); System.Xml.Xm
阅读全文
posted @ 2016-07-23 20:15 Zohar
阅读(3806)
评论(0)
推荐(0)
2016年7月22日
MFC获取字符串长度的5中方法
摘要: char s1[] = "中文ABC"; wchar_t s2[] = L"中文ABC"; 1.sizeof() /*获取字符数组的字节数(包括结束符0)*/ sizeof(s1) = 8;ANSI sizeof(s2) = 12;UNICODE 2.strlen/wcslen /*采取0作为字符串
阅读全文
posted @ 2016-07-22 23:49 Zohar
阅读(1157)
评论(0)
推荐(0)
根据不同的操作系统(64/32),设置文件以64位运行。又可解决问题:“试图加载不正确的程序”。
摘要: //button事件 void CSqlConTestDlg::OnOK() { CString strPath = "cmd.exe"; if(IsWow64()) { Wow64DisableWow64FsRedirection(NULL); } STARTUPINFO si = {sizeof
阅读全文
posted @ 2016-07-22 23:31 Zohar
阅读(695)
评论(0)
推荐(0)
2016年7月20日
WinServer2008下通过powershell获取IIS等角色功能列表,保存至txt
摘要: Set objShell = CreateObject("WScript.Shell") strCommondLine = "powershell.exe" app = objShell.Run(strCommondLine) objShell.AppActivate app WScript.Sle
阅读全文
posted @ 2016-07-20 23:21 Zohar
阅读(271)
评论(0)
推荐(0)
VBS获取本地IIS中网站的信息(IP、端口、站点名称)
摘要: Dim W3SVC,WebServer,Bindings,ALLBindingInfo,fs,TextFilePath,WebSiteName On Error Resume Next Err.Clear Set fs = WScript.CreateObject("Scripting.FileSy
阅读全文
posted @ 2016-07-20 18:39 Zohar
阅读(365)
评论(0)
推荐(0)
2016年7月19日
MFC的EXE调用VBS,并获取VBS的返回值状态码
摘要: VBS代码: Dim ageage = 21WScript.Quit age MFC的EXE代码: //获取EXE同目录下的VBS文件 TCHAR szExeSelfPath[_MAX_PATH] = {0}; ::GetModuleFileName(NULL,szExeSelfPath,_MAX_
阅读全文
posted @ 2016-07-19 21:25 Zohar
阅读(809)
评论(0)
推荐(0)
2015年12月17日
ASP.Net页面生命周期
摘要: ASP.Net页面生命周期
阅读全文
posted @ 2015-12-17 14:58 Zohar
阅读(143)
评论(0)
推荐(0)
打印JQuery
摘要: jQuery集成的打印代码
阅读全文
posted @ 2015-12-17 14:56 Zohar
阅读(145)
评论(0)
推荐(0)
上一页
1
2
3
公告