468,768 Members | 1,509 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,768 developers. It's quick & easy.

Create Object in VBScript

Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks
Apr 30 '07 #1
3 8339
Michael wrote:
Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks
Hard to say. Start here:
http://classicasp.aspfaq.com/compone...ad-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Apr 30 '07 #2
Hi. I need the new solution. Following the ASP event process over to client
vbscript where I have to create object of COM+ component installed on my
computer. My web application will work only on local computer with supplied
com+ components(they will registered by normal install process). I've got
error when I use createobject function in client vbscript. By Creating
object I will run 1 function which will return me string value. After then I
need to continue work with same vbscript client function. I tried to make
new asp file with "window.open" method. There i create object successful but
don't know how to pass function result back to vbscript.
here is some code of <name.aspfile
<head>
<script language=vbscript>
sub func()
' Set path=CreateObject("Server.Report")
' previous line gave me an error

' new try
window.open "createpath.asp?variable=<%=somevariable%>"
' here I need to get result
end sub
</script>
</head>
<body onload="onLoad()">
</body>
file createpath.asp

<%
dim myServer, newpath
Set myServer = Server.CreateObject("Server.Report")
newpath = myServer.GetReport(Request("variable")) ' if I do this way how
to transfer new path back to sub func?
%>
<body onload="self.close()">
</body>


Please help



"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:Oi**************@TK2MSFTNGP05.phx.gbl...
Michael wrote:
>Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks

Hard to say. Start here:
http://classicasp.aspfaq.com/compone...ad-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

May 2 '07 #3
some error in previuos letter
<body onload="func()">
</body>


"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:Oi**************@TK2MSFTNGP05.phx.gbl...
Michael wrote:
>Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks

Hard to say. Start here:
http://classicasp.aspfaq.com/compone...ad-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

May 2 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jiang | last post: by
6 posts views Thread by Steve Richter | last post: by
20 posts views Thread by Highlander | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.