· 类文件:(Class1)
Imports System
Imports System.Reflection
<AttributeUsage(AttributeTargets.All, AllowMultiple:=True, Inherited:=True)> _
Public Class Class1Inherits System.AttributePrivate FamilyName As StringPrivate GivenName As StringPublic Sub New(ByVal FamilyName As...
· 1. 新建一个module,先写一下API的声明:Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookExA" (ByVal idHook As HookType, ByVal lpfn As HOOKPROC, ByVal hmod As Integer, ByVal dwThreadId As Integer) As IntegerDeclare Function Unhook...
· 这个问题在很多论坛里边都有问到。但是一直没找到满意的答案。下边写出一个解决办法Dim sql As StringDim rstLiuShui As New ADODB.RecordsetDim Rpt As New CRAXDDRT.ReportDim PrintApp As New CRAXDDRT.ApplicationIf Option2.Value = True Thensql = "select * from n_ihbill where dated...
· Option ExplicitPublic Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" _
(ByVal sAgent As String, ByVal LAccessType As Long, ByVal sProxyName As String, _
ByVal SProxyBypass As String, ByVal lFlags As Long) As LongPublic Declare Functi...
· ORACLE段:
首先在ORACLE建立PACKAGE和PACKAGE BODY,将在这里面定义函数和存储过程返回结果集。
1:建立PACKAGE:
CREATE OR REPLACE package SCOTT.pk_wt
is
type mytype is ref cursor;
procedure p_wt(mycs out mytype);
function f_get(str in varchar2)
return varchar2;
end;
/
说明:其实...
· 我想从Oracle的存储过程通过一个外部dll(Delphi编写)去访问C#写的WebService时,出现了“尚未调用 CoInitialize”
不知道是怎么回事,望各位指点一二。
1、我在Oracle里写了一个函数AddNumber如下:
CREATE OR REPLACE FUNCTION "MY"."ADD" (a in BINARY_INTEGER,bin BINA...
· // 本程序提供了一个通过HTTP来操作数据库的类,这样少了本地安装乱七八糟的数据库驱动程序及复杂的设置,
// Web 服务器可以是任意的类型的,可以为 ASP , ASP.NET JSP 或其他,本模块提供了服务器的ASP.NET 的
// 例子
// 南京千里独行原创 请引用时勿删除本行 2004-12-31
using System;
using Sys...
· 下面一段文字来自C# Expert, I am wondering how to build a C# applet. I built a class library with a custom control. But the browser (IE6) fails to render it as an object. Do you have some examples to show how to achieve this? By the way, can a C# applet be run under platforms ...
· using System;
using System.XML;
using System.Text;
using System.Net;
using System.IO;
using System.Collections;
using System.Text.RegularExpressions;public class App
{public static void Main(){ string strCode;ArrayList alLinks;Console.Write("请输入一个网页地址:");...