Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Create Object in VBScript

Reply
Thread Tools

Create Object in VBScript

 
 
Michael
Guest
Posts: n/a
 
      04-30-2007
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


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      04-30-2007
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"


 
Reply With Quote
 
 
 
 
Michael
Guest
Posts: n/a
 
      05-02-2007
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.asp> file
<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]" <> wrote in message
news:...
> 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"
>



 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      05-02-2007
some error in previuos letter
<body onload="func()">
</body>




"Bob Barrows [MVP]" <> wrote in message
news:...
> 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"
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a file in ASP/VBScript? thisis ASP General 2 10-28-2006 07:33 AM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
ASP object required error - vbscript News Groups ASP General 3 08-09-2004 05:34 PM
Error: VBScript runtime (0x800A01A8) Object required: '[object]' Carolyn Speakman XML 1 07-30-2004 07:40 AM
Can I put object of vbscript class into session? Quicky ASP General 1 11-30-2003 10:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57