473,787 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Needing info on passing data between applications. Win[C#]

Perhaps someone can point me in the right direction in finding code, or
finding reading information on how to pass information (ie. ArrayList,
string, etc) between two running window applications, that won't
neccessarily be on the same machine.

This will be my first attempt at this, and I'm not sure if this falls under
COM, or ActiveX.

Any and all help is appreciated.

Thanks in advance.

Mike
Nov 29 '07 #1
11 2001
Mike,

Are they both .NET applications? If so, you should be looking into
Windows Communication Foundation, or remoting (I urge you to look at WCF
though first).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MikeY" <mi*******@yaho o.comwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Perhaps someone can point me in the right direction in finding code, or
finding reading information on how to pass information (ie. ArrayList,
string, etc) between two running window applications, that won't
neccessarily be on the same machine.

This will be my first attempt at this, and I'm not sure if this falls
under COM, or ActiveX.

Any and all help is appreciated.

Thanks in advance.

Mike
Nov 29 '07 #2
Hi Nicholas,

Yes they are both Windows/forms .NET C# applications. What I really want to
try to accomplish is to send information from one application to another
application, where it will (eventually) be sent off to be printed one of
various printers. Having the info be send to the 2nd application is to
safe-guard, incase the printer name changes, etc.

If this works, it might just end up on a server, or on another machine. In
my head I'm thinking this is the best course of action, unless there is a
better solution out there.

But thank you Nicholas, I"ll head off right now and check out WCFand or
remoting.

Thanks again.

MIkeY
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:1F******** *************** ***********@mic rosoft.com...
Mike,

Are they both .NET applications? If so, you should be looking into
Windows Communication Foundation, or remoting (I urge you to look at WCF
though first).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MikeY" <mi*******@yaho o.comwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>Perhaps someone can point me in the right direction in finding code, or
finding reading information on how to pass information (ie. ArrayList,
string, etc) between two running window applications, that won't
neccessarily be on the same machine.

This will be my first attempt at this, and I'm not sure if this falls
under COM, or ActiveX.

Any and all help is appreciated.

Thanks in advance.

Mike

Nov 29 '07 #3
Unfortunitly I'm work with VS.NET 2002 and it is my understanding that WCF
needs 2005 and greater.
"MikeY" <mi*******@yaho o.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
Hi Nicholas,

Yes they are both Windows/forms .NET C# applications. What I really want
to try to accomplish is to send information from one application to
another application, where it will (eventually) be sent off to be printed
one of various printers. Having the info be send to the 2nd application
is to safe-guard, incase the printer name changes, etc.

If this works, it might just end up on a server, or on another machine.
In my head I'm thinking this is the best course of action, unless there is
a better solution out there.

But thank you Nicholas, I"ll head off right now and check out WCFand or
remoting.

Thanks again.

MIkeY
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:1F******** *************** ***********@mic rosoft.com...
>Mike,

Are they both .NET applications? If so, you should be looking into
Windows Communication Foundation, or remoting (I urge you to look at WCF
though first).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MikeY" <mi*******@yaho o.comwrote in message
news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
>>Perhaps someone can point me in the right direction in finding code, or
finding reading information on how to pass information (ie. ArrayList,
string, etc) between two running window applications, that won't
neccessaril y be on the same machine.

This will be my first attempt at this, and I'm not sure if this falls
under COM, or ActiveX.

Any and all help is appreciated.

Thanks in advance.

Mike


Nov 29 '07 #4
On 2007-11-28 21:56:49 -0800, "MikeY" <mi*******@yaho o.comsaid:
Unfortunitly I'm work with VS.NET 2002 and it is my understanding that WCF
needs 2005 and greater.
You might consider upgrading.

But if not, as Nicholas said, .NET Remoting is also an option if you
can't use WCF.

Pete

Nov 29 '07 #5
Mike,

Just curiuous, if the second app is to safeguard in case the printer
name changes, then why not just list the printer with Active Directory? If
you do that, it doesn't matter where the printer is, as you could give it a
consistent name to be accessed by (I believe).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MikeY" <mi*******@yaho o.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
Hi Nicholas,

Yes they are both Windows/forms .NET C# applications. What I really want
to try to accomplish is to send information from one application to
another application, where it will (eventually) be sent off to be printed
one of various printers. Having the info be send to the 2nd application
is to safe-guard, incase the printer name changes, etc.

If this works, it might just end up on a server, or on another machine.
In my head I'm thinking this is the best course of action, unless there is
a better solution out there.

But thank you Nicholas, I"ll head off right now and check out WCFand or
remoting.

Thanks again.

MIkeY
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:1F******** *************** ***********@mic rosoft.com...
>Mike,

Are they both .NET applications? If so, you should be looking into
Windows Communication Foundation, or remoting (I urge you to look at WCF
though first).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MikeY" <mi*******@yaho o.comwrote in message
news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
>>Perhaps someone can point me in the right direction in finding code, or
finding reading information on how to pass information (ie. ArrayList,
string, etc) between two running window applications, that won't
neccessaril y be on the same machine.

This will be my first attempt at this, and I'm not sure if this falls
under COM, or ActiveX.

Any and all help is appreciated.

Thanks in advance.

Mike

Nov 29 '07 #6
Hi Mike,

there is something that may be not that well known in developers
heaven, but i think it is the "fastest" method in sending data between
two applications running on the same machine. Much faster than sockets,
Remoting or any other IPC Method: It is called the WM_COPYDATA
Window Message. You can send any size of Data to the target application,
and it is fast as ligthning! See here if this could be a option for you:

[WM_COPYDATA]
http://msdn2.microsoft.com/en-us/library/ms649011.aspx

This might be the fastest Solution for two applications running
on same machine!

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Nov 29 '07 #7
Hi Nicholas,

many roads lead to rome and we could protract this discussion.
You say "A", i say "B",...you say "C" and i will say "D", so i hope
the OP have had some interessting sights on how this could be done.
Sure, if he has the option of some state-of-art or ready solution/method
like WPF or Remoting, why he or she should go that way. I would say
that i am a experienced C/C++ developer so i know the pittfalls of void
pointers and all the stuff that comes with memory allocation and usage,
so every aspect of programming has its do's and dont's. Its up to the
implementor whether he or she wants speed, security or whatever in
her application. We have to accept compromises so it will be done.
There is always another way, like there will be always a bug in any
code or some sort of weakness in its design, runtime, or whatever!
Regards, health and success...

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Nov 29 '07 #8
Liz

"MikeY" <mi*******@yaho o.comwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
Yes they are both Windows/forms .NET C# applications. What I really want
to try to accomplish is to send information from one application to
another application, where it will (eventually) be sent off to be printed
one of various printers. Having the info be send to the 2nd application
is to safe-guard, incase the printer name changes, etc.
without knowing much detail, can't you just abstract the printer(s) so that
you print to "Laser" or "Plotter" and let a print provider class handle the
details of routing it to the proper device? Alternatively, how about
dumping your print files to a directory queue which picks up and routes the
jobs?
Nov 29 '07 #9
On 2007-11-29 07:25:56 -0800, "MikeY" <mi*******@yaho o.comsaid:
[...]
LOL I only wish I could upgrade .NET, it would make my life easier on a lot
of fronts, but alas, the mighty $$$ gets in the way, or for at least right
now.
Why?

The Express version is free. The actual framework itself is free.

With such an old version of Visual Studio, it's likely that whatever
sacrifices (if any...the Express version is actually remarkably
full-featured) you have to make are far outweighed by having access to
the new C#/.NET features.

You should at least give it a try.

Pete

Nov 29 '07 #10

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

Similar topics

4
1776
by: TempMan | last post by:
I want this text field to always display a number variable. The variable "num" is defined in the head, how can I get a text box to display this varibale?? <input name="Balance" type="text" value="num" size="8" maxlength="8"> Cheers
6
5787
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project modified that is to upgrade a big, more than 100,000 lines DOS based program developed by FoxPro 2.x to .NET platform. The design is as previous and the implementation will be reprogrammed. As a duty in my job I should find an answer about the
29
5031
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
3
4759
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...
8
3686
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this case) how can i pass the data from one side to the other, or retrieve it from the webform on the client side? i hope ive explained this properly
2
1045
by: ruca | last post by:
Hi gurus, I have a little complex question for you all, that I hope you can help me. I have a windows application that comunicate with another dll's applications. My Win app have some menus (like Outlook bar) and each menu can have many icons or function as you want. This icons can call forms from any dll app that I have too. Ok, so far so good.... Know I want to have a form that have a Web Browser control for calling a page that I made...
19
2534
by: Jaime Stuardo | last post by:
Hi all.. I have created a business logic component that is used from my ASP.NET webform. It works, but connection string to the database is hard coded, as in this method : public DataSet GetCategories() { SqlConnection conn = new SqlConnection("Data Source=DEVSERVER;Initial Catalog=XXXX;User ID=X;Password=Y");
1
1918
by: hl | last post by:
Hi, I'm a beginner and need a little help with getting data back from a web service. I am using VB.Net and have added a web reference to a Wsdl that was provided to me. My reference.vb file that was generated has the following code at the end. <System.Xml.Serialization.SoapTypeAttribute("Map",
0
787
by: anthony | last post by:
Hi, I have searched this news group for ways to pass data between two vb.net application, there are a few come up, can anyone list the pros and cons or the best solution, I am using 2003 but I don't want to use database for the two applications to exchange info. So far, I have seen Windows Message, Hooks, SystemWide variable DLL. The two applications can be run in XP and XP embedded. Which one of these methods requires the least...
0
9497
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
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
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
9964
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
8993
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
7517
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
6749
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
5398
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
5534
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.