473,756 Members | 7,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2808
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.
--
"AndyDunnin g" <an**********@f mg.co.uk> wrote in message
news:41******** *************** @reading.news.p ipex.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*******@hotm ail.nospam.com> wrote in message
news:a5******** ************@co mcast.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.
--
"AndyDunnin g" <an**********@f mg.co.uk> wrote in message
news:41******** *************** @reading.news.p ipex.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.
--
"AndyDunnin g" <an**********@f mg.co.uk> wrote in message
news:41******** *************** @reading.news.p ipex.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*******@hotm ail.nospam.com> wrote in message
news:a5******** ************@co mcast.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.
--
"AndyDunnin g" <an**********@f mg.co.uk> wrote in message
news:41******** *************** @reading.news.p ipex.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
2641
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 action defined as a vbscript? If so, does anyone have any idea how it would be accomplished? Thanks! Rob Oliver
3
4758
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 around chunks of data in DataTables/DataSets, simply because that was the format that they were in when the data was taken from the database. Now, I know this maybe a pretty silly question with a standard "it depends" answer, but I'm going to...
1
5354
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" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxwlkwalkthroughpassingdatatocustomaction.asp The error I recieve is: "The savedSate dictionary does not contain the expected values and might
3
12667
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 also has a button column on it. I have another .aspx page (Form2) with an unpopulated datagrid on it. I want to populate it with all the columns from the row where the button was clicked on Form1. I know how to do what I want with the datagrid
3
2684
by: Marc Castrechini | last post by:
First off this is a great reference for passing data between the Data Access and Business Layers: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/Anch_EntDevAppArchPatPrac.asp I use my own classes in the Business layer. I want to keep the Data Access layer from requiring these classes so I tried passing a Datarow between the layers and it seems to work good for me. Constructing the datarow in the Class...
0
1302
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 on the receiving end is the first character of each parameter. The function definition in the dll is like this: extern "C" BOOL PASCAL EXPORT MyFunction(char *param1, char *param2)
3
3672
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 runtime error, " Attempting to call into managed code without transitioning out first. Do not attempt to run managed code inside low-level native extensibility points, such as the vectored exception handler, since doing so can cause corruption...
4
4162
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 works real good. Since I don't need the aspx page to do any postback, is there a way to pass a parameter to it with out it finishing the round trip back to the htm page? Thanks. -- moondaddy@newsgroup.nospam
4
1683
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 chnaged universally?? Ive tried using pass by reference: int myFunction(&data) butthe compiler chucks a wobbly with it. I thought maybe pointers but I need to be explained how to do it.
3
5442
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
9212
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9790
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9779
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9645
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8645
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6473
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5247
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.