摘要: C# 程序员参考 平台调用教程 平台调用服务 (PInvoke) 允许托管代码调用在 DLL 中实现的非托管函数。 本教程说明使用什么方法才能从 C# 调用非托管 DLL 函数。该教程所讨论的属性允许您调用这些函数并使数据类型得到正确封送。示例文件 请参见“平台调用”示... 阅读全文
posted @ 2005-01-19 09:51 James Wong 阅读(8273) 评论(2) 推荐(0) 编辑
摘要: Following code demotrate to change all tables' owner to "dbo": declare tb cursor local for select 'sp_changeobjectowner ''taishanpcb.'+name+''',''dbo''' from sysobjects where status>=0 and xtyp... 阅读全文
posted @ 2005-01-19 09:50 James Wong 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 锁定表,取表的列名,取兩表重復與不重復記錄,将某个目录上的Excel表导入到数据库中 阅读全文
posted @ 2005-01-19 09:50 James Wong 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 搜索某个字符串在哪个表的那个字段中 阅读全文
posted @ 2005-01-19 09:49 James Wong 阅读(456) 评论(0) 推荐(0) 编辑
摘要: SELECT (case when a.colorder=1 then d.name else '' end) N'表名', a.colorder N'字段序号', a.name N'字段名', (case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end) N'标识', (case... 阅读全文
posted @ 2005-01-19 09:47 James Wong 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 把图片存入ACCESS数据库ZT发贴时间:2002/06/22 10:49am : DeD(似水年华) ( ) 信誉:100 2001-4-23 16:03:00 得分:20 '下面的例子使用的ADO '保存 Private Sub cmdSave_Click() Dim rs As New ADODB.Recordset Dim InterID As Stri... 阅读全文
posted @ 2005-01-19 09:47 James Wong 阅读(575) 评论(0) 推荐(0) 编辑
摘要: '************ Code Start ********** Private Sub cbxAEName_NotInList(NewData As String, Response As Integer) Dim db As DAO.Database Dim rs As DAO.Recordset Dim strMsg As String strM... 阅读全文
posted @ 2005-01-19 09:46 James Wong 阅读(365) 评论(0) 推荐(0) 编辑
摘要: Private Sub SendToAll_Click() Dim strErrMsg As String 'For Error Handling Dim olApp As New Outlook.Application Dim olNameSpace As Outlook.NameSpace Dim olMail As Outlook.MailIt... 阅读全文
posted @ 2005-01-19 09:45 James Wong 阅读(901) 评论(1) 推荐(0) 编辑
摘要: Sub SetBypassProperty() Const DB_Boolean As Long = 1 ChangeProperty "AllowBypassKey", DB_Boolean, False '--------------如果需要解开shift锁定可以用以下代码: 'ChangeProperty "AllowBypassKey", DB_Boolea... 阅读全文
posted @ 2005-01-19 09:44 James Wong 阅读(441) 评论(0) 推荐(0) 编辑
摘要: Option Compare Database Function ShiftPass(Sp As Boolean) Const DB_Boolean As Long = 1 ChangeProperty "AllowBypassKey", DB_Boolean, Sp '-------------- disable bypasskey 'ChangeP... 阅读全文
posted @ 2005-01-19 09:43 James Wong 阅读(477) 评论(0) 推荐(0) 编辑
摘要: ========================Append above Option Compare Database Option Explicit Global TotCount As Integer Function PrintLines(R As Report, TotGrp) TotCount = TotCount + 1 If TotCount (... 阅读全文
posted @ 2005-01-19 09:42 James Wong 阅读(420) 评论(0) 推荐(0) 编辑
摘要: Option Compare Database Option Explicit Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As... 阅读全文
posted @ 2005-01-19 09:41 James Wong 阅读(555) 评论(0) 推荐(0) 编辑
摘要: Option Compare Database Option Explicit Private Const WS_VERSION_REQD = &H101 Private Const WS_VERSION_MAJOR = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR = WS_VERSION_REQD A... 阅读全文
posted @ 2005-01-19 09:41 James Wong 阅读(556) 评论(0) 推荐(0) 编辑
摘要: Option Compare Database Option Explicit '*********** Code Start ******** 'Code courtesy of 'Klaus H. Probst ' '// Place all this in a module Public Declare Function LoadImage Lib "user32"Alia... 阅读全文
posted @ 2005-01-19 09:39 James Wong 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Option Compare Database Const DB_Text As Long = 10 Const DB_Boolean As Long = 1 Dim a() As Byte Dim straaa, strbbb, strQ As String Dim intbegID, intendID, intbegCMG, intendCMG, intbegDPB, int... 阅读全文
posted @ 2005-01-19 09:38 James Wong 阅读(246) 评论(0) 推荐(0) 编辑
摘要: =====================================ADP Private Sub CmdRfhRts_Click() Dim i As Integer, HasIt As Boolean Dim rs1 As ADODB.Recordset Set rs1 = New ADODB.Recordset rs1.Open... 阅读全文
posted @ 2005-01-19 09:37 James Wong 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 问: 因為我的專案須要很多種報表格式 如 A4,LETTER SIZE,我使用 VB的 PRINTER.PAPERSIZE 去更改設定但是沒有作用!!!!想請教各位先進,有那一個 C++ OR API OR VB 指令可以動態設定印表機的狀態。 答: 你不需要 C++ or API ,你只須要在 VB 裏做出正確的設定,一定可以用 Printer.PaperSize 去更改紙張設定,而... 阅读全文
posted @ 2005-01-19 09:36 James Wong 阅读(2450) 评论(0) 推荐(0) 编辑
摘要: 发布日期: 5/28/2004 | 更新日期: 5/28/2004 Bill Hamilton 2004 年 4 月 适用于: Microsoft ADO.NET Microsoft SQL Server Microsoft .NET Oracle 提供程序 Microsoft .NET Framework 1.1 版 摘要:使用 Micros... 阅读全文
posted @ 2005-01-19 09:35 James Wong 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 数据访问:使用 ADO.NET 的最佳实践(ADO.NET 技术文档) 发布日期: 4/1/2004 | 更新日期: 4/1/2004 摘要:编写 Microsoft ADO.NET 代码的最佳实践,以及对使用 ADO.NET 中可用对象的开发人员的建议。(21 页打印页) 注 如果对 ADO.NET 和 .NET 框架不熟悉,... 阅读全文
posted @ 2005-01-19 09:34 James Wong 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 视图和筛选器(深入研究数据访问) 发布日期: 4/1/2004 | 更新日期: 4/1/2004 Dino Esposito 2001 年 6 月 21 日 请下载 Source.exe。 ADO.NET 中有一层对象,它们专用于为您正在使用的任意数据源创建抽象模型。这样的集合包括如 “数据集... 阅读全文
posted @ 2005-01-19 09:33 James Wong 阅读(1318) 评论(0) 推荐(0) 编辑