473,498 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Talking to other apps on same pc

Hi

How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and b)
an MS Access app, all three running on the same pc?

Thanks

Regards
Jun 27 '08 #1
13 1148
On Apr 24, 5:00*pm, "John" <i...@nospam.infovis.co.ukwrote:
Hi

How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and b)
an MS Access app, all three running on the same pc?

Thanks

Regards
Hi,
Try using SendMessage API with WM_COPYDATA:

http://www.vbaccelerator.com/home/ne...on/article.asp
http://www.codeproject.com/KB/threads/ipc_wmcopy.aspx
HTH,

Onur
Jun 27 '08 #2
This code is in c++?

Regards

"kimiraikkonen" <ki*************@gmail.comwrote in message
news:1d**********************************@l42g2000 hsc.googlegroups.com...
On Apr 24, 5:00 pm, "John" <i...@nospam.infovis.co.ukwrote:
Hi

How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and
b)
an MS Access app, all three running on the same pc?

Thanks

Regards
Hi,
Try using SendMessage API with WM_COPYDATA:

http://www.vbaccelerator.com/home/ne...on/article.asp
http://www.codeproject.com/KB/threads/ipc_wmcopy.aspx
HTH,

Onur
Jun 27 '08 #3
On Apr 24, 5:28*pm, "John" <i...@nospam.infovis.co.ukwrote:
This code is in c++?

Regards

"kimiraikkonen" <kimiraikkone...@gmail.comwrote in message

news:1d**********************************@l42g2000 hsc.googlegroups.com...
On Apr 24, 5:00 pm, "John" <i...@nospam.infovis.co.ukwrote:
Hi
How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and
b)
an MS Access app, all three running on the same pc?
Thanks
Regards

Hi,
Try using SendMessage API with WM_COPYDATA:

http://www.vbaccelerator.com/home/ne...pc_wmcopy.aspx

HTH,

Onur
Sorry, for second one Yes, stick with first one, VBaccelerator's.

Use Google for more Sendmessage API samples.

Thanks,

Onur
Jun 27 '08 #4
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
Hi

How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and b)
an MS Access app, all three running on the same pc?
John,

Can you give a little more detail about your application? I think it
would be helpful so that I or someone else does not lead you down a
wrong path.

--
Tom Shelton
Jun 27 '08 #5
We have two database apps, one a vb.net winform app and other an ms access
app. Both are run by users at the same time as both provide different info.
A third vb.net app from time to time needs to ask the above two apps to go
to specific records for user's convenience. So I am looking for the best way
to send commands from this vb.net app to the two other apps.

Thanks

Regards

"Tom Shelton" <to*********@YOUKNOWTHEDRILLcomcast.netwrote in message
news:u8**************@TK2MSFTNGP05.phx.gbl...
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
>Hi

How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and
b)
an MS Access app, all three running on the same pc?

John,

Can you give a little more detail about your application? I think it
would be helpful so that I or someone else does not lead you down a
wrong path.

--
Tom Shelton

Jun 27 '08 #6
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
We have two database apps, one a vb.net winform app and other an ms access
app. Both are run by users at the same time as both provide different info.
A third vb.net app from time to time needs to ask the above two apps to go
to specific records for user's convenience. So I am looking for the best way
to send commands from this vb.net app to the two other apps.

Thanks
Ok... That makes a little more sense. Does the 3rd app always send the
same command to both apps? Or, are they independant? In other words,
does it send different commands, to different apps, at different times -
depending on user action, or does it just send the same command to both
apps everytime? And one last question, and this comes from the fact
that I'm pretty ignorant when it comes to VBA Access applications...
Is there something/someway to receive window messages in your access
application? In other words, can you subclass something's WndProc?

--
Tom Shelton
Jun 27 '08 #7
Ok... That makes a little more sense. Does the 3rd app always send the
same command to both apps? Or, are they independant? In other words,
does it send different commands, to different apps, at different times -
depending on user action, or does it just send the same command to both
apps everytime?
Different commands to each app and at different times from each other.
And one last question, and this comes from the fact
that I'm pretty ignorant when it comes to VBA Access applications...
Is there something/someway to receive window messages in your access
application? In other words, can you subclass something's WndProc?
No idea. :) I am low on Win API side. I am a db developer.

Thanks

Regards
Jun 27 '08 #8
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
>
>Ok... That makes a little more sense. Does the 3rd app always send the
same command to both apps? Or, are they independant? In other words,
does it send different commands, to different apps, at different times -
depending on user action, or does it just send the same command to both
apps everytime?

Different commands to each app and at different times from each other.
Ok. I was just curious - I had a simple solution in mind, but it would
only work if they were the same command all the time....
>And one last question, and this comes from the fact
that I'm pretty ignorant when it comes to VBA Access applications...
Is there something/someway to receive window messages in your access
application? In other words, can you subclass something's WndProc?

No idea. :) I am low on Win API side. I am a db developer.
Ok... Then a SendMessage type scenario is probably out of the question.
I'm thinking you might need to look at something like named pipes -
which version of the framework are you targeting? Either way, there is
going to be some api work involved :)

--
Tom Shelton
Jun 27 '08 #9
vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.

Thanks

Regards

"Tom Shelton" <to*********@YOUKNOWTHEDRILLcomcast.netwrote in message
news:ev**************@TK2MSFTNGP06.phx.gbl...
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
>>
>>Ok... That makes a little more sense. Does the 3rd app always send the
same command to both apps? Or, are they independant? In other words,
does it send different commands, to different apps, at different times -
depending on user action, or does it just send the same command to both
apps everytime?

Different commands to each app and at different times from each other.

Ok. I was just curious - I had a simple solution in mind, but it would
only work if they were the same command all the time....
>>And one last question, and this comes from the fact
that I'm pretty ignorant when it comes to VBA Access applications...
Is there something/someway to receive window messages in your access
application? In other words, can you subclass something's WndProc?

No idea. :) I am low on Win API side. I am a db developer.

Ok... Then a SendMessage type scenario is probably out of the question.
I'm thinking you might need to look at something like named pipes -
which version of the framework are you targeting? Either way, there is
going to be some api work involved :)

--
Tom Shelton

Jun 27 '08 #10
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.
That's good news, because .NET 3.5 has built in support for pipes - the
issue is with the VBA side. Let me do a little poking around... Am I
correct in assuming that the access side is a receiver as well?

--
Tom Shelton
Jun 27 '08 #11
Access is receiving as well.

Many Thanks

Regards

"Tom Shelton" <to*********@YOUKNOWTHEDRILLcomcast.netwrote in message
news:uS**************@TK2MSFTNGP05.phx.gbl...
On 2008-04-24, John <in**@nospam.infovis.co.ukwrote:
>vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.

That's good news, because .NET 3.5 has built in support for pipes - the
issue is with the VBA side. Let me do a little poking around... Am I
correct in assuming that the access side is a receiver as well?

--
Tom Shelton

Jun 27 '08 #12
"John" <in**@nospam.infovis.co.ukwrote in message
news:Ok*************@TK2MSFTNGP05.phx.gbl...
vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.
fyi... 3.5 won't install on Win2k, so higher performance OSs are out of the
question.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Jun 27 '08 #13
On 2008-04-24, Ken Halter <Ken_Halter@Use_Sparingly_Hotmail.comwrote:
"John" <in**@nospam.infovis.co.ukwrote in message
news:Ok*************@TK2MSFTNGP05.phx.gbl...
>vs 2008 can use 3.5 if needed for both (sender and receiver) .net apps.

fyi... 3.5 won't install on Win2k, so higher performance OSs are out of the
question.
If he has 2008, then he can't be using Win2K now can he?

--
Tom Shelton
Jun 27 '08 #14

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

Similar topics

0
1190
by: Ted Gill | last post by:
Platform: Windows ME Python version: 2.3.2-1 Problem: Running GUI apps in Idle does not work. When executing GUI (tkinter/pmw) apps from the edit windows or doing an "import <file>" in the...
9
1630
by: deko | last post by:
I'm confused about what I can use C# and VS.NET for. I have both Visual Studio 6.0 and Visual Studio .NET - which one do I use? If I want to build a basic VB app, I assume I can use the VB 6...
9
43068
by: mBird | last post by:
I wrote a service that listens for broadcast messages from my firewall (UDP snmp trap messages) and parses and puts the data in an database. I'd also like to write an app that is a simple form...
8
1928
by: Floris van Haaster | last post by:
Hi All! I have a question, i have a web application and I store some member information in a variable i declared in a module like: Public some_info_variable as string in module1.vb But...
1
1242
by: walt | last post by:
A few years ago I wrote an active-X server to maintain a single connection to a file .mdb from multiple apps on same PC because I was having to many database curptions. Should I use the same...
5
5101
by: djhexx | last post by:
Hi. We have an asp.net intranet application written in VB that uses forms authentication for all it's pages. I have a C# asp.net application that I just wrote. The company would like the C#...
5
1297
by: Jason | last post by:
I've a c# app that I execute on a remote machine, which works as I expect it to, but when that apps throws an exception on the remote machine how do I know what's going on, since it's a remote...
2
6503
by: james | last post by:
Hi all, I am trying to convert some old VB6 code to .NET. Take this first section (there is more, but hey-ho...) Dim XLApp As Object Dim XLSheet Dim XLBook Dim HeaderItem As String Dim...
20
1705
by: Steven D'Aprano | last post by:
Am I the only one who finds that I'm writing more documentation than code? I recently needed to write a function to generate a rank table from a list. That is, a list of ranks, where the rank of...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
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...
0
7203
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...
0
7379
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
5462
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,...
1
4908
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...
0
3093
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...
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.