摘要: 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 阅读(3706) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(1092) 评论(0) 推荐(0) 编辑
摘要: //button事件 void CSqlConTestDlg::OnOK() { CString strPath = "cmd.exe"; if(IsWow64()) { Wow64DisableWow64FsRedirection(NULL); } STARTUPINFO si = {sizeof 阅读全文
posted @ 2016-07-22 23:31 Zohar 阅读(683) 评论(0) 推荐(0) 编辑
摘要: Set objShell = CreateObject("WScript.Shell") strCommondLine = "powershell.exe" app = objShell.Run(strCommondLine) objShell.AppActivate app WScript.Sle 阅读全文
posted @ 2016-07-20 23:21 Zohar 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(796) 评论(0) 推荐(0) 编辑
摘要: ASP.Net页面生命周期 阅读全文
posted @ 2015-12-17 14:58 Zohar 阅读(135) 评论(0) 推荐(0) 编辑
摘要: jQuery集成的打印代码 阅读全文
posted @ 2015-12-17 14:56 Zohar 阅读(142) 评论(0) 推荐(0) 编辑