Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1708619
  • 博文数量: 171
  • 博客积分: 11553
  • 博客等级: 上将
  • 技术积分: 3986
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-25 20:28
文章分类

全部博文(171)

文章存档

2012年(2)

2011年(70)

2010年(9)

2009年(14)

2008年(76)

分类: C/C++

2008-03-15 16:46:31

先在VB6.0下创建一ActiveX工程,添加如下代码

Private Sub Class_Initialize()
MsgBox "class_initialize"
End Sub

Private Sub Class_Terminate()
MsgBox "Class_Terminate"

End Sub

Public Function AddInt()
MsgBox "AddInt"
End Function


创建一ASP页面,添加如下代码

<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="VBScript" type="text/VBScript">
dim oDll
sub newDll
set oDll = CreateObject("Project1.DllVb")
oDll.Addint
end sub
</script>

<body onload="newDll">
</body>
</html>

阅读(1265) | 评论(0) | 转发(0) |
0

上一篇:汉字转化拼音

下一篇:STL的IO操作之三

给主人留下些什么吧!~~