473,383 Members | 1,958 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,383 software developers and data experts.

Help on how to create intra-application communication

Hello:
I have done some research on the following but still not clear as what
mechanism is preferable
PROBLEM:
In a VB.NET environment, I will have two applications.

Application (A) will do some windows/database stuff which results in a value
being "returned"
Application (B) contains a text field and a button which opens application
(A)

DESIRED PROCESS:
Application (B) calls Application (A) and (A) goes modal
Application (A) does some work and when I Close (A) it "returns" a
value: Ret_A
Application (B) reads the value Ret_A

RESEARCH:
I looked at MSMQ which seems "heavy" to run on client XP's just for
this.
I looked at stdio which (A) could open and (B) could read but I do not
want a console window to open but could work if the console window was
invisible ...

I looked at remoting but both application will be running on the same
computer, so remoting seems overkill

I looked at the SendMessage() API but most examples I see are for vb 6.0

I looked at (A) writing to registry and (B) reading from registry on a
separate thread using a timer process (every second) but that does not seem
to have any integrity - it is just a third party mail drop and could get
screwed-up.

I would appreciate your opinion
Thanks
Terry

Nov 20 '05 #1
3 1293
How about A writing to a file that B can read?? There is managed implementation of Shared memory too (http://staff.develop.com/richardb/we...-39ca338d906d), which may also be an option.

Rgds,
Anand M
VB.NET MVP
http://www.dotnetindia.com

"Support" wrote:
Hello:
I have done some research on the following but still not clear as what
mechanism is preferable
PROBLEM:
In a VB.NET environment, I will have two applications.

Application (A) will do some windows/database stuff which results in a value
being "returned"
Application (B) contains a text field and a button which opens application
(A)

DESIRED PROCESS:
Application (B) calls Application (A) and (A) goes modal
Application (A) does some work and when I Close (A) it "returns" a
value: Ret_A
Application (B) reads the value Ret_A

RESEARCH:
I looked at MSMQ which seems "heavy" to run on client XP's just for
this.
I looked at stdio which (A) could open and (B) could read but I do not
want a console window to open but could work if the console window was
invisible ...

I looked at remoting but both application will be running on the same
computer, so remoting seems overkill

I looked at the SendMessage() API but most examples I see are for vb 6.0

I looked at (A) writing to registry and (B) reading from registry on a
separate thread using a timer process (every second) but that does not seem
to have any integrity - it is just a third party mail drop and could get
screwed-up.

I would appreciate your opinion
Thanks
Terry

Nov 20 '05 #2
Thanks - how would B know when the file was written - seems like the same
issue: how does B know when A is finished...
I would like A to tell B the file was written and to take a look at it
without using something like the heavy Filewatcher class..
I will look at the link
Thanks

"Anand[MVP}" <An******@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
How about A writing to a file that B can read?? There is managed implementation of Shared memory too
(http://staff.develop.com/richardb/we...bfb-bac9-4e19-
bbc5-39ca338d906d), which may also be an option.
Rgds,
Anand M
VB.NET MVP
http://www.dotnetindia.com

"Support" wrote:
Hello:
I have done some research on the following but still not clear as what
mechanism is preferable
PROBLEM:
In a VB.NET environment, I will have two applications.

Application (A) will do some windows/database stuff which results in a value being "returned"
Application (B) contains a text field and a button which opens application (A)

DESIRED PROCESS:
Application (B) calls Application (A) and (A) goes modal
Application (A) does some work and when I Close (A) it "returns" a
value: Ret_A
Application (B) reads the value Ret_A

RESEARCH:
I looked at MSMQ which seems "heavy" to run on client XP's just for
this.
I looked at stdio which (A) could open and (B) could read but I do not want a console window to open but could work if the console window was
invisible ...

I looked at remoting but both application will be running on the same computer, so remoting seems overkill

I looked at the SendMessage() API but most examples I see are for vb 6.0
I looked at (A) writing to registry and (B) reading from registry on a separate thread using a timer process (every second) but that does not seem to have any integrity - it is just a third party mail drop and could get
screwed-up.

I would appreciate your opinion
Thanks
Terry

Nov 20 '05 #3
You could even look at a named pipe(or a socket based one) based communication channel, if you find it a problem with Shared Memory.

--
Regards,
Anand M
VB.NET MVP

http://www.dotnetindia.com
"Support" wrote:
Thanks - how would B know when the file was written - seems like the same
issue: how does B know when A is finished...
I would like A to tell B the file was written and to take a look at it
without using something like the heavy Filewatcher class..
I will look at the link
Thanks

"Anand[MVP}" <An******@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
How about A writing to a file that B can read?? There is managed

implementation of Shared memory too
(http://staff.develop.com/richardb/we...bfb-bac9-4e19-
bbc5-39ca338d906d), which may also be an option.

Rgds,
Anand M
VB.NET MVP
http://www.dotnetindia.com

"Support" wrote:
Hello:
I have done some research on the following but still not clear as what
mechanism is preferable
PROBLEM:
In a VB.NET environment, I will have two applications.

Application (A) will do some windows/database stuff which results in a value being "returned"
Application (B) contains a text field and a button which opens application (A)

DESIRED PROCESS:
Application (B) calls Application (A) and (A) goes modal
Application (A) does some work and when I Close (A) it "returns" a
value: Ret_A
Application (B) reads the value Ret_A

RESEARCH:
I looked at MSMQ which seems "heavy" to run on client XP's just for
this.
I looked at stdio which (A) could open and (B) could read but I do not want a console window to open but could work if the console window was
invisible ...

I looked at remoting but both application will be running on the same computer, so remoting seems overkill

I looked at the SendMessage() API but most examples I see are for vb 6.0
I looked at (A) writing to registry and (B) reading from registry on a separate thread using a timer process (every second) but that does not seem to have any integrity - it is just a third party mail drop and could get
screwed-up.

I would appreciate your opinion
Thanks
Terry


Nov 20 '05 #4

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

Similar topics

14
by: John Davis | last post by:
Anyone knows how to create the username/password authorization dialog in ASP? Thanks, John
14
by: LumisROB | last post by:
Is it possible to create matrixes with vector <vector <double >> ? If it is possible which is the element m23 ? You excuse but I am not an expert Thanks ROB
2
by: maricel | last post by:
Is there any advantage in terms of performance when activating intra-parallelism INTRA_PARALLEL = yes DFT_DEGREE = -1 for a Windows 2K, sigle (1) CPU server. The database is used for a small...
5
by: Evan Smith | last post by:
We recently upgraded the box that hosts our main DB2 database to an 8-CPU machine with 8 GB of memory. With all the extra horsepower, we were eager to test performance with intra-parallelism turned...
8
by: JSC | last post by:
Hello all, We're running AIX 5.3 and DB2 v8.1 FP 9. Topas and lscfg confirm that this is a 4-way SMP environment, however only 1 of the 4 processors seems to be operative. That is, with...
1
by: Laurence | last post by:
Hi folks, As I konw: database partition (aka data partition?), the database can span multiple machines; table partition, the data within a table can seperate by certain condition. How about...
0
by: tomwolfstein | last post by:
Hi. I am trying to write a wrapper for the standard VC1 decoder, and I need to resolve a "TypeLoadException" The decoder comes an an executable which I've turned into a .dll. This decoder has about...
3
by: Joseph Geretz | last post by:
The conventional approach is easy enough; drop a NotifyIcon onto a Form. When the form is loaded - bingo - the icon appears in the System Tray. I can't use this approach though. I'm writing a...
1
by: marcroy.olsen | last post by:
Hi Python list, I have been struggleling with this before, but have never been able to find a good solution. The thing I dont understand is, I follow the guide here:...
3
ChrisWang
by: ChrisWang | last post by:
Hi all, I have a simple question about "Intra-package References" There are two source files and __init__.py in package MyPkg shown below: |-MyPkg -__init__.py -example.py -test.py
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
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...
0
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,...
0
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$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.