473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Passing Data Between Applications

Hello,

I'm interested in establishing the best way to pass information between a vb
script and a .net application.

We have a VbScript that runs on a users pc every time a phone call is routed
to that user, this script is provided by out telecom provide. The Script
contains call details e.g. incoming number.

My aim is to pass data from this vb script to my .net app.

Suggestions as to the best way to proceed would be much appreciated.

Thanks

Andy
Nov 22 '05 #1
3 2770
you never said if your .net app is running on all of the client's machines
or just on a single server...

you never said if your app is already running when the vbscript is called or
if you want/need the vbscript to start your app.

does your app run entirely in the background, or does it have a user
interface?

Please provide details.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"AndyDunning" <an**********@fmg.co.uk> wrote in message
news:41***********************@reading.news.pipex. net...
Hello,

I'm interested in establishing the best way to pass information between a vb script and a .net application.

We have a VbScript that runs on a users pc every time a phone call is routed to that user, this script is provided by out telecom provide. The Script
contains call details e.g. incoming number.

My aim is to pass data from this vb script to my .net app.

Suggestions as to the best way to proceed would be much appreciated.

Thanks

Andy

Nov 22 '05 #2
Nick,

The .Net app has a UI and should already be running on the client pc. Each
time the phone system passes a call to a particular agent the vbscript runs
on that pc. I guess however we should cover the scenario where the .net app
has been closed by the user, but they have still be allocated a call. This
would only happen if they had closed the .net app by mistake, in which case
the vbscript should ideally auto start the .net application.

Hope this clarifies things, thanks for you interest in my question.

Andy
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:a5********************@comcast.com...
you never said if your .net app is running on all of the client's machines
or just on a single server...

you never said if your app is already running when the vbscript is called
or
if you want/need the vbscript to start your app.

does your app run entirely in the background, or does it have a user
interface?

Please provide details.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"AndyDunning" <an**********@fmg.co.uk> wrote in message
news:41***********************@reading.news.pipex. net...
Hello,

I'm interested in establishing the best way to pass information between a

vb
script and a .net application.

We have a VbScript that runs on a users pc every time a phone call is

routed
to that user, this script is provided by out telecom provide. The Script
contains call details e.g. incoming number.

My aim is to pass data from this vb script to my .net app.

Suggestions as to the best way to proceed would be much appreciated.

Thanks

Andy


Nov 22 '05 #3
Sounds like a call center application.
So, you need the information just as soon as it is available.

I would suggest that you get familiar with remoting.

Part one:
Create a remote component (singleton). It will have three functions:
1) a client can register a callback (delegate)
2) a client can ask for any queued information
3) a client can pass in information. If there are no callbacks registered,
then queue the data and start an application (configured in a config file).
Otherwise, send the data in the callback.

Part two:
create a little console app that takes the parameters provided on the
command line and calls the remote component (function three). The console
app ends.

Part three:
In your .net app, during start up, call the remote object and registers a
callback. Immediately ask for any queued information. (expect nothing, but
you will get data if the remoted object had to start your app).
When you get the callback, you will get the data passed from the console app
on its command line

Part four:
modify the VBScript to call the console application, passing the data on the
command line.

notes: when the remote object queues the data, it can do it to a local text
file or MSMQ or a database. It really shouldn't keep it in memory, because
it's caller will quit, potentially before another caller starts, which means
it could end up garbage collected.

Hope this helps.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"AndyDunning" <an**********@fmg.co.uk> wrote in message
news:41***********************@reading.news.pipex. net...
Nick,

The .Net app has a UI and should already be running on the client pc. Each
time the phone system passes a call to a particular agent the vbscript runs on that pc. I guess however we should cover the scenario where the .net app has been closed by the user, but they have still be allocated a call. This
would only happen if they had closed the .net app by mistake, in which case the vbscript should ideally auto start the .net application.

Hope this clarifies things, thanks for you interest in my question.

Andy
"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:a5********************@comcast.com...
you never said if your .net app is running on all of the client's machines or just on a single server...

you never said if your app is already running when the vbscript is called or
if you want/need the vbscript to start your app.

does your app run entirely in the background, or does it have a user
interface?

Please provide details.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"AndyDunning" <an**********@fmg.co.uk> wrote in message
news:41***********************@reading.news.pipex. net...
Hello,

I'm interested in establishing the best way to pass information between a
vb
script and a .net application.

We have a VbScript that runs on a users pc every time a phone call is

routed
to that user, this script is provided by out telecom provide. The

Script contains call details e.g. incoming number.

My aim is to pass data from this vb script to my .net app.

Suggestions as to the best way to proceed would be much appreciated.

Thanks

Andy



Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rob Oliver | last post by:
Hi, I've seen a walkthrough for passing data from a setup project to a custom action (an application) with an InstallClass. I am curious though--can the data also be intercepted by a custom...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
1
by: Hans [DiaGraphIT] | last post by:
Hi! I have problem with passing data to custom action. I don't know what wrong I'm doing. I'm trying to follow the steps in the walkthrough: "Passing Data to a Custom Action" ...
3
by: Brian Smith | last post by:
I have a .aspx page (we'll call it Form1) with a datagrid on it. The datagrid is populated from a dataset that I manually entered data into (the data isn't in a database). The datagrid on Form1...
3
by: Marc Castrechini | last post by:
First off this is a great reference for passing data between the Data Access and Business Layers:...
0
by: Dave Cullen | last post by:
I have a dll written in VC6 that I need to send arguments to from a call in VB.NET. I'm having trouble passing data arguments between them. So far I've only tried passing strings, and all I get...
3
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following...
4
by: moondaddy | last post by:
I have a htm page where I need to pass some data to an aspx page as a means of sending data to the database. I don't need to see the aspx page so I was going to put it in a hidden iframe. This...
4
by: Dameon99 | last post by:
Hi all, I am passing data into a function in C to be edited but that function already returns some data. I was wondering how i could pass data in to a function so that when it is edited it is...
3
by: fxeko | last post by:
Hi all... I have got a problem about passing data parameter in data report VB6 my problem: x= "admin" how to send value of x variabel to data report Thanks for your advabced
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.