| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 765 人关注过本帖
标题:Server.CreateObject
只看楼主 加入收藏
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
结帖率:76.71%
收藏
已结贴  问题点数:20 回复次数:4 
Server.CreateObject
Server.CreateObject("这个东西有什么呢")

Server.CreateObject("adodb.recordset")
Server.CreateObject("adodb.stream")

还有什么呢,那里可以查找呢。谢谢。
搜索更多相关主题的帖子: 谢谢 东西 
2013-05-15 09:48
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
ADO对象(太常用了):
Server.CreateObject("ADODB.Connection")
Server.CreateObject(")
Server.CreateObject("ADODB.RecordSet")
Server.CreateObject("ADODB.Record")
Server.CreateObject("ADODB.Stream")

ASP支持的对象太多了,你可以自己写COM组件,下面是一些常使用的:
Server.CreateObject("Scripting.FileSystemObject")
Server.CreateObject("Scripting.Dictionary")? HashTable
Server.CreateXObject("Word.Application")?? //Server
ActiveXObject("Word.Application")   //Client
Server.CreateObject("Excel.Application")   //Server
ActiveXObject("Excel.Application") //Client
CreateObject("PowerPoint.Application")
Server.CreateObject("Microsoft.XMLHTTP")
Server.CreateObject("Microsoft.XMLDOM")
Server.CreateObject("MSXML2.XMLHTTP.4.0")
Server.CreateObject("WScript.Shell")
Server.CreateObject(") //网络地址的
Server.CreateObject("MSWC.AdRotator")
CreateObject("Excel.Sheet")
MS FrontPage: oFP = CreateObject("FrontPage.Application")
MS Access: oAccess = CreateObject("Access.Application")
MS Graph: oGraph = CreateObject("MSGraph.Application")

下面是我们应该知道的:
CreateObject("Photoshop.Application")

关于SQL Server的
CreateObject("SQLDMO.SQLServer")
CreateObject("SQLDMO.Login")
CreateObject("SQLDMO.Backup")
CreateObject("SQLDMO.User")
Server.CreateObject("SQLDMO.BackupDevice")
Server.CreateObject("SQLDMO.Database")
Server.CreateObject("SQLDMO.Restore")


MSMQ的
Server.CreateObject("MSMQ.MSMQQueueInfo")
CreateObject("MSMQ.MSMQQuery")

全文索引的
Server.CreateObject("ixsso.Query")
Server.CreateObject("ixsso.Util")

邮件发送的组件:
Server.CreateObject("JMAIL.Message") // JMail
Server.CreateObject("CDONTS.NewMail") //CDONTS

下面一些是不太常见的对象:
AccPac Advantage Corporate:
oAccPac=CreateObject("ACCPAC.xapiSession")


AccPac Report Master for Windows:
oImpApp=CreateObject("Impromptu.Application.30")

BarTender:
oBarTender = CreateObject("BarTender.Application")

CrystalReports:
oCRApplication = createobject ("CrystalRuntime.Application")
This doesn't invoke an IDE actually.

EUDORA:
oEud = CreateObject("Eudora.EuApplication.1")

FaxMaker:
oFax = CreateOBJECT("fmfaxapi.application")

GroupWise:
oGroupWise = CreateObject("NovellGroupWareSession")

LotusNotes:
oNotes = CreateObject("Notes.NotesSession")
oNotes = CreateObject("Notes.NotesUIWorkspace")
oNotes = CreateObject("Lotus.Notessession") (Domino 5.0.3)

MS Common Dialog:
oCommmonDialog = CreateObject(") && !!! You can't directly create this object without a development licence, so for dynamically doing it on another machine, see below. -- PeterCrabtree

MS Internet Explorer:
oIE = CreateObject("InternetExplorer.Application")
IEAutomationExample

MS MapPoint:
oMapPoint = CreateObject("MapPoint.Application")

MSN Messenger:
oMessenger = CreateOBJECT("MSNMessenger.MessengerApp")

MS NetMeeting:
oNetMeeting=CreateOBJECT("netmeeting.app.1")

MS Outlook:
oOutlook = CreateObject("Outlook.Application")

MS Outlook Express: None - It is not a COM server!

MS PowerPoint:
oPP = CreateObject("PowerPoint.Application")

MS Project:
oProj = CreateObject("msProject.Application")

MS SourceSafe:
oVSS = CreateObject("SourceSafe.0")

MS Word:
oWord = CreateObject("Word.Application")

MS Visio:
oVisio = CreateObject("Visio.Application")

MS VisualBasic: 不知道,网站也没有登记出来。

MS VisualCPlusPlus: (VC++)
oCpp = CreateObject("MSDev.Application")

MS VisualFoxpro:
oVFP = CreateObject("VisualFoxPro.Application")

MS WindowsScriptingHost:
oWSH = CreateObject("WScript.Shell")

Novell GroupWise:
oGroupWise = CreateObject("NovellGroupWareSession")

PCAnywhere (host):
oPCAHost = CreateObject("WinAWSvr.BeHostDataManager")

PCAnywhere (remote):
oPCARem = CreateObject("WinAWSvr.RemoteDataManager")

QuickBooks:
QBSessionManager = CreateObject("QBFC2.QBSessionManager")

RationalRose:
orose = CreateObject("Rose.Application")

TAPIFax:
oTAPIFax = CreateObject('FaxServer.FaxServer')

WindowsShell:
oWSH = CreateObject("Shell.Application")

Windows Media Player:

oWMP = CreateOBJECT("WMPlayer.OCX")
oPlayList = oWmp.PlaylistCollection.GetAll()
oWmp.currentPlaylist = oPlayList.Item(0) && Zero based array
*!* Music starts!

Windows Messenger:
oMessenger = CreateOBJECT("Messenger.MessengerApp")

WinFax:
oWinFax = CreateObject("WinFax.SDKSend")

WinPrint :
oWinPrint = CreateObject("WinPrint.WinPrintX")

SQL-DMO object:
loSQL = CreateOBJECT("SQLDMO.Application")

Others:

Scripting Shell:
oShell = CreateObject("WScript.Shell")

Scripting Network Object:
oNet = CreateObject(")

Scripting Regular Expression Parser:
oreg = CreateObject("VBScript.RegExp")

SQL DMO SQL Server:
CreateObject("SQLDMO.SQLServer")

ASP讨论QQ群:251346273
2013-05-15 10:01
诸葛修勤
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:11
帖 子:549
专家分:1955
注 册:2010-10-28
收藏
得分:20 
用ASP在AD域中添加一个新的用户  怎么写?


2013-05-15 19:21
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
你找个ASP源码,多的事哦。
<%
dim conn  
dim connstr
Connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("data.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
Conn.Open Connstr
%>

ASP讨论QQ群:251346273
2013-05-17 12:30
诸葛修勤
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:11
帖 子:549
专家分:1955
注 册:2010-10-28
收藏
得分:0 
回复 4楼 ysf0181
请给个网址,  因为需要操作AD域, 但是不知道怎么弄
2013-05-18 15:08
快速回复:Server.CreateObject
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017891 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved