摘要:
1 #include 2 #include 3 #pragma comment(lib, "dbghelp.lib") 4 5 BOOL IsDataSectionNeeded(const WCHAR* pModuleName) 6 { 7 if(pModuleName == 0) 8 { 9 return FALSE; 10 } ... 阅读全文
摘要:
Public Function FindPrinter(strPrinterName As String) As Boolean Dim pa As String Dim length As Integer Dim objRegistry As Object Dim arrSubkeys As Variant Dim subkey As Variant ... 阅读全文
摘要:
msdn2.microsoft.com/en-us/library/22e4dash.aspx msdn2.microsoft.com/en-us/library/b610yw3t.aspx msdn2.microsoft.com/en-us/library/42zy2z41.aspx msdn2. 阅读全文
摘要:
1、若C#调用VC的动态库,而dll中使用了MFC则须将MFC静态链接到dll中。 2、C#调用C++的动态库有三种方法:COM组件、托管代码、非托管代码。 COM组件需客户端注册,若客户无管理员权限则无法使用; 托管代码可以将dll中的类导出,但需要写托管代码,添加工作量且代码看上去有点**; 非 阅读全文
摘要:
System.DateTime.Today.ToString("yyyy-MM-dd") 这样才能使不同系统的日期格式相同。 阅读全文
摘要:
1 ResultListCtrl.Dispatcher.BeginInvoke( 2 new Action(() => { 3 ResultListCtrl.Items.Add(str); 4 5 if (VisualTreeHelper.GetChildrenCount(ResultListCtrl) > 0) 6 { ... 阅读全文
摘要:
1 public void OnFlushImage() 2 { 3 bool bStart = false; 4 while (mFlush == true) 5 { 6 if (bStart) 7 { 8 Thread.Sleep(1000); 9 continue; 1... 阅读全文
摘要:
@echo off echo *** echo Setting system database... @odbcconf.exe /a {CONFIGSYSDSN "SQL Server" "DSN=myDSN|SERVER=ServerName|Database=myDB|Trusted_Connection=yes"} echo Setting database completed! e... 阅读全文
摘要:
//* 字符转换 //* 对话框在初始化中退出:OnInitDialog中直接调用OnCancel() //* CEdit滚动到最后一行:::PostMessage(GetDlgItem(IDC_EDIT1)->m_hWnd, WM_VSCROLL, SB_BOTTOM, 0); //* CEdit 阅读全文