Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server Side Program Execution (with in a web page)

Posted on 2003-11-10
14
Medium Priority
?
181 Views
Last Modified: 2010-05-03
Hello, Im trying to figure out how to get a program to run thrugh a server via a web site.  Infact i have seen it where programs actually run from within a web page.  I need to do this because I have a case managment system updating all the time, and I don't want the users to download a new version everytime they use it.
0
Comment
Question by:clear100-com
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9722049
If you want to run something on the server through the web, use ASP (or PHP etc...), or use a terminal program.

If you use ASP, you will have to convert your system to ASP.

0
 

Author Comment

by:clear100-com
ID: 9722689
When I run Visual Basic I get one result i think that i may be able to use, however its not the right one (i don't think)

It opens the web file with this in it:

<HTML><BODY><OBJECT classid="clsid:4D3572DA-2537-4913-A8F7-943E6036730B">
</OBJECT></BODY></HTML>

my question is, is there anyway to run this on the server? somehow specify my active x file from the server?  I know that there is a way, ill email you a sample if you wish, just a screen shot.  One program called Clarify Web Client does the same thing.
0
 

Author Comment

by:clear100-com
ID: 9722694
(my email is <edited by CetusMOD as it's a violation of http:/help.jsp#hi99)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9722754
If you ask this in the ASP forum you should get an answer.

You can definitely run an ActiveX DLL on the server. You can also run an Exe or whatever, but it isn't going to pop up on the client screen and ask for input etc. if you run it on the server.



I haven't done any ASP for a while, from memory, this fragment might work:

<SCRIPT>
Dim oObject
Set oObject = Server.CreateObject("My.DLL")

oObject.RunMethod

</SCRIPT>

You have to attach it to an event somehwhere.

It assumes you have a registered ActiveX DLL called My.DLL

It assumes the DLL has a method called RunMethod that you want to run.
0
 

Author Comment

by:clear100-com
ID: 9722867
No, thats not what im talking about at all.  I know how to do that, infact i do that asp'less code all the time.  What im looking for is diffrent.  im looking to run a program like this:

http://www.verbomail.com/experts-exchange/4/untitled.jpg

I know this is possible because I use a program like it every day.
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9723050
I see. Sorry I thought I was dealing with a newbie!!  :)

Maybe DCOM will do that. I don't know, I've never had to use it but my limited understanding of DCOM makes me think you can.

I vaguely recall that there was a utility which let you redirect a COM call to another computer, something to do with MTS, but I would say its a bit out of date. However the method you are using looks like it is instantiating a local COM object but maybe you need to configure it to run on another computer.

Also CreateObject lets you specify a computer to create a component on... again I've never used it.

From the MSDN help:




You can create an object on a remote networked computer by passing the name of the computer to the servername argument of CreateObject. That name is the same as the Machine Name portion of a share name: for a share named "\\MyServer\Public," servername is "MyServer."

Note   Refer to COM documentation (see Microsoft Developer Network) for additional information on making an application visible on a remote networked computer. You may have to add a registry key for your application.

The following code returns the version number of an instance of Excel running on a remote computer named MyServer:

Dim xlApp As Object
Set xlApp = CreateObject("Excel.Application", "MyServer")
Debug.Print xlApp.Version

0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9723117
If I am barking up the correct tree then the util you need to redirect COM calls is

DCOMCNFG.EXE

But I would have thought you could downlaod an control for IE that would let you do all this automatically.



0
 

Author Comment

by:clear100-com
ID: 9723191
im not sure wha dcomcnfg.exe is, but i just want an application to run from with in a window, can you find any examples?
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9723269
No I don't have any examples.

Also if you can get hold of Interdev it might do it all for you automatically.

Try asking about it in the ASP forum.
0
 

Author Comment

by:clear100-com
ID: 9845197
OK, how about this, do you know when you go in to your IDE and when your creating an activeX object, you run your program and it uses windows xp pro as the form or container? Thats what i want to do.
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9848865
At this page:

http://longhorn.msdn.microsoft.com/lhsdk/ndp/cpconserver-sideobjecttagsyntax.aspx


I found this example of using the OBJECT tag:

<object id="items" class="System.Collections.ArrayList" runat=server/>

(in .NET)


Is that what you're after?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 10537094
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

Dan Rollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 10577618
PAQed - no points refunded (of 40)

ee_ai_construct
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question