Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Float problems Pin
dbytz26-May-04 13:25
dbytz26-May-04 13:25 
GeneralDataAdapters Update-Insert Command Pin
MrJJKoolJ26-May-04 5:58
MrJJKoolJ26-May-04 5:58 
GeneralRe: DataAdapters Update-Insert Command Pin
Heath Stewart26-May-04 7:52
protectorHeath Stewart26-May-04 7:52 
GeneralRe: DataAdapters Update-Insert Command Pin
MrJJKoolJ26-May-04 8:27
MrJJKoolJ26-May-04 8:27 
GeneralRe: DataAdapters Update-Insert Command Pin
Heath Stewart26-May-04 9:02
protectorHeath Stewart26-May-04 9:02 
GeneralRe: DataAdapters Update-Insert Command Pin
Heath Stewart26-May-04 9:47
protectorHeath Stewart26-May-04 9:47 
GeneralCommunications between applications Pin
Guinness4Strength26-May-04 5:48
Guinness4Strength26-May-04 5:48 
GeneralRe: Communications between applications [EDITED] Pin
Dave Kreskowiak26-May-04 6:07
mveDave Kreskowiak26-May-04 6:07 
I'm going to let other people get into some of the details because my experience with Remoting is lightweight compared to other people here...

You're looking to have a 2nd instance of an app throw a string, or whatever else, at the 1st instance of your app, then quit.

Remoting is not the overkill you would think it is. It's actually going to give you the best bang for your buck as far as flexibility, being able to pass any object you want and send information back to the caller.

Using the SendMessage and FindWindow API's is actually a VERY limited method of communication and frankly, not that reliable in this case you have to garantee that the window that your talking to isn't the window your sending from. In others words, an instance of an app can end up talking to itself instead of a previous instance. Plus, you have to register your own custom message and you would have to pass a pointer to a String or other object. You can't send a copy of the string itself.

There are a couple of other methods that are written up in these articles on CP here[^], here[^], and here[^]. But these methods are not elegant, more like hacks really (no offense Big Grin | :-D ) because they can't be written in totally managed code, and have their pitfalls and, I think, are limited to just passing a single string.


RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Communications between applications [EDITED] Pin
Guinness4Strength26-May-04 7:24
Guinness4Strength26-May-04 7:24 
Generalcrystal reports question Pin
blankg26-May-04 5:24
blankg26-May-04 5:24 
GeneralRe: crystal reports question Pin
Dave Kreskowiak26-May-04 5:34
mveDave Kreskowiak26-May-04 5:34 
GeneralRe: crystal reports question Pin
Heath Stewart26-May-04 5:37
protectorHeath Stewart26-May-04 5:37 
GeneralRe: crystal reports question Pin
Nick Seng26-May-04 15:34
Nick Seng26-May-04 15:34 
GeneralRe: crystal reports question Pin
blankg26-May-04 21:46
blankg26-May-04 21:46 
GeneralDuplicate menus with checkboxes Pin
goldoche26-May-04 5:16
goldoche26-May-04 5:16 
GeneralRe: Duplicate menus with checkboxes Pin
Heath Stewart26-May-04 5:32
protectorHeath Stewart26-May-04 5:32 
GeneralFun with a datagrid Pin
Adam °Wimsatt26-May-04 5:14
Adam °Wimsatt26-May-04 5:14 
GeneralRe: Fun with a datagrid Pin
DougW4826-May-04 5:23
DougW4826-May-04 5:23 
GeneralRe: Fun with a datagrid Pin
Adam °Wimsatt26-May-04 5:38
Adam °Wimsatt26-May-04 5:38 
GeneralDataadapter Updates Pin
MrJJKoolJ26-May-04 5:03
MrJJKoolJ26-May-04 5:03 
GeneralRe: Dataadapter Updates Pin
Heath Stewart26-May-04 5:13
protectorHeath Stewart26-May-04 5:13 
GeneralRe: Dataadapter Updates Pin
MrJJKoolJ26-May-04 5:23
MrJJKoolJ26-May-04 5:23 
GeneralRe: Dataadapter Updates Pin
Heath Stewart26-May-04 5:26
protectorHeath Stewart26-May-04 5:26 
GeneralRe: Dataadapter Updates Pin
MrJJKoolJ26-May-04 5:36
MrJJKoolJ26-May-04 5:36 
GeneralRe: Dataadapter Updates Pin
Heath Stewart26-May-04 5:40
protectorHeath Stewart26-May-04 5:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.