Click here to Skip to main content
15,925,399 members
Home / Discussions / C#
   

C#

 
GeneralPrinting the content of a ArrayList Pin
swordcoast6-Oct-03 20:03
swordcoast6-Oct-03 20:03 
GeneralRe: Printing the content of a ArrayList Pin
Corinna John6-Oct-03 21:09
Corinna John6-Oct-03 21:09 
GeneralRe: Printing the content of a ArrayList Pin
swordcoast7-Oct-03 0:04
swordcoast7-Oct-03 0:04 
GeneralRe: Printing the content of a ArrayList Pin
Corinna John7-Oct-03 1:12
Corinna John7-Oct-03 1:12 
GeneralRe: Printing the content of a ArrayList Pin
swordcoast7-Oct-03 21:53
swordcoast7-Oct-03 21:53 
GeneralThe C# equivalent of an STL Pin
vylkier6-Oct-03 15:46
vylkier6-Oct-03 15:46 
GeneralRe: The C# equivalent of an STL Pin
J. Dunlap6-Oct-03 16:24
J. Dunlap6-Oct-03 16:24 
GeneralRe: The C# equivalent of an STL Pin
Nick Parker6-Oct-03 17:47
protectorNick Parker6-Oct-03 17:47 
GeneralWrapping lines of code Pin
aka the guy6-Oct-03 14:57
aka the guy6-Oct-03 14:57 
GeneralRe: Wrapping lines of code Pin
leppie6-Oct-03 15:13
leppie6-Oct-03 15:13 
GeneralRe: Wrapping lines of code Pin
aka the guy6-Oct-03 15:16
aka the guy6-Oct-03 15:16 
GeneralRe: Wrapping lines of code Pin
Mike Ellison6-Oct-03 15:31
Mike Ellison6-Oct-03 15:31 
GeneralRe: Wrapping lines of code Pin
Philip Fitzsimons7-Oct-03 2:56
Philip Fitzsimons7-Oct-03 2:56 
GeneralA Design Question. Pin
jtmtv186-Oct-03 14:29
jtmtv186-Oct-03 14:29 
GeneralRe: A Design Question. Pin
akak19977-Oct-03 11:00
akak19977-Oct-03 11:00 
GeneralRe: A Design Question. Pin
jtmtv187-Oct-03 13:05
jtmtv187-Oct-03 13:05 
GeneralRe: A Design Question. Pin
David Stone7-Oct-03 13:19
sitebuilderDavid Stone7-Oct-03 13:19 
GeneralRe: A Design Question. Pin
jtmtv187-Oct-03 13:51
jtmtv187-Oct-03 13:51 
GeneralQuestion about reflection... Pin
Kryal6-Oct-03 12:56
Kryal6-Oct-03 12:56 
GeneralRe: Question about reflection... Pin
leppie6-Oct-03 15:17
leppie6-Oct-03 15:17 
GeneralRe: Question about reflection... Pin
Blake Coverett6-Oct-03 20:20
Blake Coverett6-Oct-03 20:20 
GeneralPheonix Pin
leppie7-Oct-03 7:45
leppie7-Oct-03 7:45 
GeneralRe: Pheonix Pin
Blake Coverett7-Oct-03 15:43
Blake Coverett7-Oct-03 15:43 
GeneralBEGINNER: Help with messaging Pin
BambooMoon6-Oct-03 12:52
BambooMoon6-Oct-03 12:52 
Please be kind if this is a foolish question or has been discussed ad nauseum, but I can't find it and I don't get it.

As a dyed-in-the-wool C++/MFC programmer, I now have to start usign C#, but of course new programs I write still have to interact with existing C++/MFC programs. The existing C++/MFC programs communicate with each other through Windows messages (mostly WM_USER + xxx, but also sometimes just sending a WM_CLOSE to close each other). They ALSO communicate internally to a given process among threads by using PostMessage() and PostThreadMessage() with user-defined messages.

So, to my questions:

1) Is it true, as I've read in several places now, that the only/best way for a C# application to receive a Windows message is by overriding WinProc? That seems hideous.

2) Is it true, as I've also read, that the only way for a C# application to send a Windows message to another application is by P/Invoke of SendMessage()?

3) Finally, for the communication between threads or windows of a given process. I realize that I can call functions back and forth, use delegates, or whatever, but (pardon my ignorance), that seems very synchronous and painful compared with being able to call PostMessage() or PostThreadMessage() and not have to wait for the receiver to process the message. Is there a better way?

Thanks for any advice.
GeneralRe: BEGINNER: Help with messaging Pin
jparsons6-Oct-03 12:54
jparsons6-Oct-03 12:54 

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.