Solved

Server Side Program Execution (with in a web page)

Posted on 2003-11-10
14
174 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
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
 
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now