Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCOM and 'runat' where???

Status
Not open for further replies.

almoes

Programmer
Jan 8, 2003
291
US
I am using an ActiveX EXE running on a server and I want to call an instance of it by client scripting in an ASP. Everything is defined and registered in DCOM, but if I use the <script> tag, how should i do it? Because using the following:
<script language=vbscript>
Dim RSPserver
set RSPserver=CreateObject(&quot;RemoteComponent.RSPServer&quot;,&quot;192.10.10.200&quot;)
</script>

I get the following error: Object variable not set: 'createObject'

and if I modify to look like this:

Dim RSPserver as RemoteComponent.RSPServer

then i get 'expected end of statement'

somebody knows what is missing??

Thanks,
alej
 
>> by client scripting in an ASP

ASP script only runs on the Server. Therefore there is no such thing as client scripting in ASP. You need to clarify your question.

-pete
 
But you can client script on an ASP! Anyway, I get the same errors if I define it as html file.
 
Basically what I want to do is create an instance on the client of an object that runs on the server. That's what DCOM is for, no? And I need to use this instance in a web interface. If DCOM is well configured, how do I create this instance?
Thanks,
alej
 
I got it, anyway that made me realize that I don't need ASP, the component runs on the server but I control it from the client.

Thanks,
alej
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top