摘要:
DataTable dt = new DataTable(); DataSet ds = new DataSet(); ds.Tables.Add(dt); System.IO.StringWriter sw = new System.IO.StringWriter(); System.Xml.Xm 阅读全文
摘要:
char s1[] = "中文ABC"; wchar_t s2[] = L"中文ABC"; 1.sizeof() /*获取字符数组的字节数(包括结束符0)*/ sizeof(s1) = 8;ANSI sizeof(s2) = 12;UNICODE 2.strlen/wcslen /*采取0作为字符串 阅读全文
摘要:
//button事件 void CSqlConTestDlg::OnOK() { CString strPath = "cmd.exe"; if(IsWow64()) { Wow64DisableWow64FsRedirection(NULL); } STARTUPINFO si = {sizeof 阅读全文
摘要:
Set objShell = CreateObject("WScript.Shell") strCommondLine = "powershell.exe" app = objShell.Run(strCommondLine) objShell.AppActivate app WScript.Sle 阅读全文
摘要:
Dim W3SVC,WebServer,Bindings,ALLBindingInfo,fs,TextFilePath,WebSiteName On Error Resume Next Err.Clear Set fs = WScript.CreateObject("Scripting.FileSy 阅读全文
摘要:
VBS代码: Dim ageage = 21WScript.Quit age MFC的EXE代码: //获取EXE同目录下的VBS文件 TCHAR szExeSelfPath[_MAX_PATH] = {0}; ::GetModuleFileName(NULL,szExeSelfPath,_MAX_ 阅读全文