Hi,
I am trying to pass a value from an ASP script to a VB application running
on the server. The only way I have got this to work is by using a file,
which is too slow. I tried using DDE but if a VB app contains a form then I
can't get it to run under IIS. Anybody done something similar? 17 4968
How are you calling the VB app? Are you just executing it with a shell
command, or is it an activeX thing and you're creating it within your ASP
app?
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message
news:bl**********@newsg1.svr.pol.co.uk... Hi,
I am trying to pass a value from an ASP script to a VB application running on the server. The only way I have got this to work is by using a file, which is too slow. I tried using DDE but if a VB app contains a form then
I can't get it to run under IIS. Anybody done something similar?
Yes. It is a small VB app which sends a DDE string to another VB app which
is running all the time. It works from the command line, but as it uses a
form it hangs when called from an ASP script as I think it is trying to
interact with the desktop. (you can see the app in Task Manager). A
similar app which just writes to a file works OK.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uH**************@TK2MSFTNGP11.phx.gbl... How are you calling the VB app? Are you just executing it with a shell command, or is it an activeX thing and you're creating it within your ASP app?
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@newsg1.svr.pol.co.uk... Hi,
I am trying to pass a value from an ASP script to a VB application
running on the server. The only way I have got this to work is by using a file, which is too slow. I tried using DDE but if a VB app contains a form
then I can't get it to run under IIS. Anybody done something similar?
Person1: Is it A or B?
Person2: Yes
Nice. ;]
If it works from the command line, does it accept command$ arguments? If
so, execute it with the Wscript.Shell object. Here's a page about that. http://www.aspfaq.com/2059
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message
news:bl**********@newsg2.svr.pol.co.uk... Yes. It is a small VB app which sends a DDE string to another VB app
which is running all the time. It works from the command line, but as it uses a form it hangs when called from an ASP script as I think it is trying to interact with the desktop. (you can see the app in Task Manager). A similar app which just writes to a file works OK. "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:uH**************@TK2MSFTNGP11.phx.gbl... How are you calling the VB app? Are you just executing it with a shell command, or is it an activeX thing and you're creating it within your
ASP app?
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@newsg1.svr.pol.co.uk... Hi,
I am trying to pass a value from an ASP script to a VB application running on the server. The only way I have got this to work is by using a
file, which is too slow. I tried using DDE but if a VB app contains a form
then I can't get it to run under IIS. Anybody done something similar?
It's not ActiveX as you may have guessed. I am using Wscript.Shell, but
this doesn't work if the VB project has a form in it. If it has no form I
can take the command$ argument and write it to a file. To use DDE I need a
form with a TextBox. Even though the form doesn't display I think it causes
a problem when run from Wscript.Shell because you have to load the form even
if it doesn't display. (I am guessing here).
BTW I don't have to use DDE if you can suggest a better way. I just need to
pass some text from an ASP script to a running VB app on the server.
Thanks for your help.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Person1: Is it A or B? Person2: Yes
Nice. ;]
If it works from the command line, does it accept command$ arguments? If so, execute it with the Wscript.Shell object. Here's a page about that. http://www.aspfaq.com/2059
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@newsg2.svr.pol.co.uk... Yes. It is a small VB app which sends a DDE string to another VB app which is running all the time. It works from the command line, but as it uses
a form it hangs when called from an ASP script as I think it is trying to interact with the desktop. (you can see the app in Task Manager). A similar app which just writes to a file works OK. "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:uH**************@TK2MSFTNGP11.phx.gbl... How are you calling the VB app? Are you just executing it with a
shell command, or is it an activeX thing and you're creating it within your ASP app?
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@newsg1.svr.pol.co.uk... > Hi, > > I am trying to pass a value from an ASP script to a VB application running > on the server. The only way I have got this to work is by using a file, > which is too slow. I tried using DDE but if a VB app contains a
form then I > can't get it to run under IIS. Anybody done something similar? > >
Even if it's a GUI app, you may still be able to run it on the server. But
it's better to use applications that are created for running sans GUI.
I could have sworn I heard rumors about DDE being added to Microsoft's
"Deprecated Technologies" list. I'm not sure how true that is, as I believe
that netdde still exists in 2003, at least.
What are you trying to do here? Have a user submit a form, and then your
asp page will call one VB app which will then call another? If so, the
issue is with your VB app.
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message
news:bl**********@news7.svr.pol.co.uk... It's not ActiveX as you may have guessed. I am using Wscript.Shell, but this doesn't work if the VB project has a form in it. If it has no form I can take the command$ argument and write it to a file. To use DDE I need
a form with a TextBox. Even though the form doesn't display I think it
causes a problem when run from Wscript.Shell because you have to load the form
even if it doesn't display. (I am guessing here).
BTW I don't have to use DDE if you can suggest a better way. I just need
to pass some text from an ASP script to a running VB app on the server.
I have 1 app running on the server that communicates with the serial port
(sending data) and listens for DDE from either a local app, netDDE or from
the web server via the command line app. The communication between the web
server and the app doesn't have to be DDE, I used it because it if fairly
easy to implement in VB6. I have seen examples using a very similar method,
but the ran on PWS not IIS. PWS has an option to 'allow interaction with
the desktop' that IIS doesn't seem to have. I think you are correct about
DDE as it is not supported in VB.NOT, but using COM as an alternative is
difficult in VB6.
In summary the user submits a form that sends some text to the serial port.
The VB bit if for checking an to allow another GUI to also use the same
port.
I had hoped to get the communication with the serial port to be 2 way, but
one way will do for now!
Any suggestions?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Even if it's a GUI app, you may still be able to run it on the server.
But it's better to use applications that are created for running sans GUI.
I could have sworn I heard rumors about DDE being added to Microsoft's "Deprecated Technologies" list. I'm not sure how true that is, as I
believe that netdde still exists in 2003, at least.
What are you trying to do here? Have a user submit a form, and then your asp page will call one VB app which will then call another? If so, the issue is with your VB app.
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@news7.svr.pol.co.uk... It's not ActiveX as you may have guessed. I am using Wscript.Shell, but this doesn't work if the VB project has a form in it. If it has no form
I can take the command$ argument and write it to a file. To use DDE I
need a form with a TextBox. Even though the form doesn't display I think it causes a problem when run from Wscript.Shell because you have to load the form even if it doesn't display. (I am guessing here).
BTW I don't have to use DDE if you can suggest a better way. I just
need to pass some text from an ASP script to a running VB app on the server.
If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com
WAND-TV (ABC Affiliate) www.wandtv.com
"Freeserve" <no****@bigfoot.com> wrote in message
news:bl**********@newsg2.svr.pol.co.uk... I have 1 app running on the server that communicates with the serial
port (sending data) and listens for DDE from either a local app, netDDE
or from the web server via the command line app. The communication between
the web server and the app doesn't have to be DDE, I used it because it if
fairly easy to implement in VB6. I have seen examples using a very similar
method, but the ran on PWS not IIS. PWS has an option to 'allow interaction
with the desktop' that IIS doesn't seem to have. I think you are correct
about DDE as it is not supported in VB.NOT, but using COM as an
alternative is difficult in VB6.
In summary the user submits a form that sends some text to the
serial port. The VB bit if for checking an to allow another GUI to also use the
same port.
I had hoped to get the communication with the serial port to be 2
way, but one way will do for now!
Any suggestions?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl... Even if it's a GUI app, you may still be able to run it on the
server. But it's better to use applications that are created for running sans
GUI. I could have sworn I heard rumors about DDE being added to
Microsoft's "Deprecated Technologies" list. I'm not sure how true that is, as
I believe that netdde still exists in 2003, at least.
What are you trying to do here? Have a user submit a form, and
then your asp page will call one VB app which will then call another? If
so, the issue is with your VB app.
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@news7.svr.pol.co.uk... It's not ActiveX as you may have guessed. I am using
Wscript.Shell, but this doesn't work if the VB project has a form in it. If it has
no form I can take the command$ argument and write it to a file. To use
DDE I need a form with a TextBox. Even though the form doesn't display I
think it causes a problem when run from Wscript.Shell because you have to load
the form even if it doesn't display. (I am guessing here).
BTW I don't have to use DDE if you can suggest a better way. I
just need to pass some text from an ASP script to a running VB app on the
server.
If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com
WAND-TV (ABC Affiliate) www.wandtv.com
well its a VB app which I run from the command line like:
aspsend some_text
and some_text is sent to the other app. The problem is this doesn't work
when called from an ASP script if the VB has a form in it but does work if
it doesn't as in the case of writing to a file. I want to use DDE which
requires a form.
"Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message
news:ez**************@tk2msftngp13.phx.gbl... If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com WAND-TV (ABC Affiliate) www.wandtv.com
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@newsg2.svr.pol.co.uk... I have 1 app running on the server that communicates with the serial port (sending data) and listens for DDE from either a local app, netDDE or from the web server via the command line app. The communication between the web server and the app doesn't have to be DDE, I used it because it if fairly easy to implement in VB6. I have seen examples using a very similar method, but the ran on PWS not IIS. PWS has an option to 'allow interaction with the desktop' that IIS doesn't seem to have. I think you are correct about DDE as it is not supported in VB.NOT, but using COM as an alternative is difficult in VB6.
In summary the user submits a form that sends some text to the serial port. The VB bit if for checking an to allow another GUI to also use the same port.
I had hoped to get the communication with the serial port to be 2 way, but one way will do for now!
Any suggestions?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Even if it's a GUI app, you may still be able to run it on the server. But it's better to use applications that are created for running sans GUI. I could have sworn I heard rumors about DDE being added to Microsoft's "Deprecated Technologies" list. I'm not sure how true that is, as I believe that netdde still exists in 2003, at least.
What are you trying to do here? Have a user submit a form, and then your asp page will call one VB app which will then call another? If so, the issue is with your VB app.
Ray at work
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@news7.svr.pol.co.uk... > It's not ActiveX as you may have guessed. I am using Wscript.Shell, but > this doesn't work if the VB project has a form in it. If it has no form I > can take the command$ argument and write it to a file. To use DDE I need a > form with a TextBox. Even though the form doesn't display I think it causes > a problem when run from Wscript.Shell because you have to load the form even > if it doesn't display. (I am guessing here). > > BTW I don't have to use DDE if you can suggest a better way. I just need to > pass some text from an ASP script to a running VB app on the server. >
You can create command line apps in VB. It's just clumsy to do so.
Ray at work
"Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message
news:ez**************@tk2msftngp13.phx.gbl... If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP]
Phillip Windell wrote: If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
Actually, it does. But this is a topic for another newgroup.
Bob
I have before, in fact I have one in use. But it is not a true
commendline app. It is really just a normal VB App with a form that
has the form property set to invisible and the code executed from the
form's OnLoad event and then "self exits" at the bottom of the Sub.
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com
WAND-TV (ABC Affiliate) www.wandtv.com
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in
message news:un**************@TK2MSFTNGP12.phx.gbl... You can create command line apps in VB. It's just clumsy to do so.
Ray at work
"Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message news:ez**************@tk2msftngp13.phx.gbl... If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP]
VB is designed to take "parameters" from the user interacting with the
App's form. I think it was a rather convoluted process to get a VB
App to accept commandline parameters. I read some about it once, never
tried it, thought it wasn't worth the trouble, and now I don't even
remember what the process was to do it.
You need to ask in a VB group.
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com
WAND-TV (ABC Affiliate) www.wandtv.com
"Freeserve" <no****@bigfoot.com> wrote in message
news:bl**********@news6.svr.pol.co.uk... well its a VB app which I run from the command line like:
aspsend some_text
and some_text is sent to the other app. The problem is this doesn't
work when called from an ASP script if the VB has a form in it but does
work if it doesn't as in the case of writing to a file. I want to use DDE
which requires a form.
"Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message news:ez**************@tk2msftngp13.phx.gbl... If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com WAND-TV (ABC Affiliate) www.wandtv.com
"Freeserve" <no****@bigfoot.com> wrote in message news:bl**********@newsg2.svr.pol.co.uk... I have 1 app running on the server that communicates with the
serial port (sending data) and listens for DDE from either a local app,
netDDE or from the web server via the command line app. The communication
between the web server and the app doesn't have to be DDE, I used it because it
if fairly easy to implement in VB6. I have seen examples using a very
similar method, but the ran on PWS not IIS. PWS has an option to 'allow
interaction with the desktop' that IIS doesn't seem to have. I think you are
correct about DDE as it is not supported in VB.NOT, but using COM as an alternative is difficult in VB6.
In summary the user submits a form that sends some text to the serial port. The VB bit if for checking an to allow another GUI to also use
the same port.
I had hoped to get the communication with the serial port to be
2 way, but one way will do for now!
Any suggestions?
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... > Even if it's a GUI app, you may still be able to run it on the server. But > it's better to use applications that are created for running
sans GUI. > > I could have sworn I heard rumors about DDE being added to Microsoft's > "Deprecated Technologies" list. I'm not sure how true that
is, as I believe > that netdde still exists in 2003, at least. > > What are you trying to do here? Have a user submit a form,
and then your > asp page will call one VB app which will then call another?
If so, the > issue is with your VB app. > > Ray at work > > > "Freeserve" <no****@bigfoot.com> wrote in message > news:bl**********@news7.svr.pol.co.uk... > > It's not ActiveX as you may have guessed. I am using Wscript.Shell, but > > this doesn't work if the VB project has a form in it. If it
has no form I > > can take the command$ argument and write it to a file. To
use DDE I need > a > > form with a TextBox. Even though the form doesn't display I think it > causes > > a problem when run from Wscript.Shell because you have to
load the form > even > > if it doesn't display. (I am guessing here). > > > > BTW I don't have to use DDE if you can suggest a better way.
I just need > to > > pass some text from an ASP script to a running VB app on the server. > > > >
I agree. VB is definitely not a good language for command line apps. I
also have one that I made that runs every night while I sleep. It works,
but if I had my choice, I'd redo it in C. First I'd have to learn C though.
;]
You don't have to have a form.
Ray at home
"Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message
news:Oi**************@TK2MSFTNGP09.phx.gbl... I have before, in fact I have one in use. But it is not a true commendline app. It is really just a normal VB App with a form that has the form property set to invisible and the code executed from the form's OnLoad event and then "self exits" at the bottom of the Sub.
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com WAND-TV (ABC Affiliate) www.wandtv.com
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:un**************@TK2MSFTNGP12.phx.gbl... You can create command line apps in VB. It's just clumsy to do so.
Ray at work
"Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message news:ez**************@tk2msftngp13.phx.gbl... If it is done with VB than it is not "commandline"!
VB doesn't do "commandline" (aka "console" applications)
--
Phillip Windell [CCNA, MVP, MCP]
Phillip Windell wrote: I have before, in fact I have one in use. But it is not a true commendline app. It is really just a normal VB App with a form that has the form property set to invisible and the code executed from the form's OnLoad event and then "self exits" at the bottom of the Sub.
Again, this is offtopic, but, check this out: http://www.developer.com/net/vb/article.php/1538861
Bob Barrows
"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in
message news:e9**************@TK2MSFTNGP09.phx.gbl... also have one that I made that runs every night while I sleep. It
works, but if I had my choice, I'd redo it in C. First I'd have to learn C
though.
Same here. I took one smemester of C++ but dropped it because the
teacher did so poorly it was a waste of time. I may do it again later
with a different teacher.
You don't have to have a form.
Use the Code Module? Well, doesn't matter, it's too "OT" anyway and
I don't want to keep dragging the thread out.
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv.com
WAND-TV (ABC Affiliate) www.wandtv.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alex Vinokur |
last post by:
Various forms of argument passing
=================================
C/C++ Performance Tests
=======================
Using C/C++ Program Perfometer...
|
by: Dave |
last post by:
I'm currently working on a small project (admitedly for my CS class)
that compares the time difference between passing by value and passing
by reference. I'm passing an array of 50000 int's. ...
|
by: jr |
last post by:
Sorry for this very dumb question, but I've clearly got a long way to go!
Can someone please help me pass an array into a function. Here's a starting
point.
void TheMainFunc()
{
// Body of...
|
by: Harolds |
last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005
the pmID is evaluated to "" instead of what the value is set to:
....
xmlItems.Document = pmXML
// Add the pmID...
|
by: Just Me |
last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in.
Is the "ref" correct or since only a pointer is being passed should it be by
value?
Suppose I was passing data rather then...
|
by: MSDNAndi |
last post by:
Hi,
I get the following warning:
"Possibly incorrect assignment to local 'oLockObject' which is the argument
to a using or lock statement. The Dispose call or unlocking will happen on
the...
|
by: Christopher Benson-Manica |
last post by:
Does the following program exhibit undefined behavior? Specifically,
does passing a struct by value cause undefined behavior if that struct
has as a member a pointer that has been passed to...
|
by: Andrew Bullock |
last post by:
Hi,
I have two classes, A and B,
B takes an A as an argument in its constructor:
A a1 = new A();
B b = new B(a1);
|
by: Mike |
last post by:
Consider the following code:
"""
struct person {
char *name;
int age;
};
typedef struct person* StructType;
|
by: TS |
last post by:
I was under the assumption that if you pass an object as a param to a method
and inside that method this object is changed, the object will stay changed
when returned from the method because the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |