摘要:
BOOL HasChineseChar(CString Cstr){int nLen = Cstr.GetLength();unsigned char ch1, ch2;for(int i = 0; i != nLen; ++i){ch1 = Cstr[i];if (ch1 >= 0xA0){re... 阅读全文
摘要:
////生成树根MSXML::IXMLDOMElementPtr pDocElement=pDoc->createElement("China"); pDoc->appendChild(pDocElement); ///添加节点MSXML::IXMLDOMElementPtr pNewChil... 阅读全文
摘要:
int i = 1; int y = 0;try{i = i/y;throw new ArgumentException(); }catch(Exception ee){Console.WriteLine(ee.ToString()); Console.WriteLine("error"); }... 阅读全文
摘要:
#include "Winuser.h"#pragma comment(lib,"user32.lib") CPopDlg m_popDlg; m_popDlg.Create(IDD_DIALOG1,this); int x= GetSystemMetrics(SM_CXSCREEN);... 阅读全文
摘要:
NOTIFYICONDATA nd; BOOL CPlaySoundDlg::OnInitDialog(){ CDialogEx::OnInitDialog(); // 设置此对话框的图标。当应用程序主窗口不是对话框时,框架将自动 // 执行此操作 SetIcon(m_hIco... 阅读全文
摘要:
WinExec("cmd /c dir c:\\new\\*.txt >c:\\new\\txtlist",SW_HIDE); 阅读全文
摘要:
1.初始化图片列表 CTreeCtrl CImageList m_imglstTreeFolder; m_imglstTreeFolder.Create( 16 , 16 , ILC_COLOR24 | ILC_MASK , 1 , 0 ) ; m_imglstTreeFolder.Add... 阅读全文
摘要:
LONG lStyle; lStyle = GetWindowLong(m_list.m_hWnd, GWL_STYLE);//获取当前窗口风格 lStyle &= ~LVS_TYPEMASK; //清除显示方式位 lStyle |= LVS_REPORT; //设置报表风格 SetWindowL... 阅读全文
摘要:
#include #include int killpro(CString a){ PROCESSENTRY32 pe32; pe32.dwSize =sizeof(pe32); HANDLE hpro=::CreateToolhelp32Snapshot(TH32CS_SNAPPROC... 阅读全文
摘要:
using System.Data.OleDb;using MySql.Data.MySqlClient;using System.Data;using System.Data.SqlClient; void LinkMySql() { strin... 阅读全文