Click here to Skip to main content
15,923,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inactive screen Pin
Rahim Rattani6-Jan-05 0:49
Rahim Rattani6-Jan-05 0:49 
GeneralRe: inactive screen Pin
Michael Dunn6-Jan-05 11:03
sitebuilderMichael Dunn6-Jan-05 11:03 
QuestionHow to get information about hardwares installed i my PC Pin
patel_sandeep5-Jan-05 22:30
patel_sandeep5-Jan-05 22:30 
AnswerRe: How to get information about hardwares installed i my PC Pin
ThatsAlok5-Jan-05 22:43
ThatsAlok5-Jan-05 22:43 
AnswerRe: How to get information about hardwares installed i my PC Pin
kramesh6-Jan-05 1:30
kramesh6-Jan-05 1:30 
GeneralMessage exchange between applications Pin
raghav19725-Jan-05 21:53
raghav19725-Jan-05 21:53 
GeneralRe: Message exchange between applications Pin
Yulianto.5-Jan-05 22:44
Yulianto.5-Jan-05 22:44 
GeneralRe: Message exchange between applications Pin
Martin Koorts6-Jan-05 3:25
Martin Koorts6-Jan-05 3:25 
Hi
If the 2 apps are running on the same machine, you can use SendMessage but the information is limited to what you can squash into the WPARAM and LPARAM values (64 bits in total on 32 bit machine). If you need to exchange more info (most likely), consider a richer typed interface such as COM over memory-mapped files, etc, because it was designed with this scenario in mind.

If you're crossing the network between 2 machines, you're left with IP (TCP & UDP), HTTP (and SOAP/WebServices variants) or again COM (aka DCOM in this capacity, which incidentally runs over IP).
Using VC++;
For IP, you can use Windows Sockets (MFC or Win32 API), as has been suggested.
For HTTP, you can use WinInet (MFC or Win32 API), but this requires an web server (eg. IIS).
For COM, you're best off using ATL.

HTH
Martin

PS: You can use IP between 2 apps on the same machine, but it's arguably too contrived.
Generalabout set font Pin
StoreErin5-Jan-05 21:34
StoreErin5-Jan-05 21:34 
GeneralRe: about set font Pin
ThatsAlok6-Jan-05 1:00
ThatsAlok6-Jan-05 1:00 
GeneralRe: about set font Pin
StoreErin6-Jan-05 1:43
StoreErin6-Jan-05 1:43 
GeneralRe: about set font Pin
Martin Koorts6-Jan-05 3:31
Martin Koorts6-Jan-05 3:31 
GeneralRe: about set font Pin
basementman6-Jan-05 5:10
basementman6-Jan-05 5:10 
GeneralRe: about set font Pin
ThatsAlok6-Jan-05 6:39
ThatsAlok6-Jan-05 6:39 
GeneralRe: about set font Pin
StoreErin6-Jan-05 15:10
StoreErin6-Jan-05 15:10 
GeneralGDI Object Accumulation Pin
Garth Watkins5-Jan-05 20:41
Garth Watkins5-Jan-05 20:41 
GeneralInserting Row thru OLEDB Pin
Chitrack5-Jan-05 20:19
Chitrack5-Jan-05 20:19 
GeneralRe: Inserting Row thru OLEDB Pin
IsaacLitingjun5-Jan-05 21:22
IsaacLitingjun5-Jan-05 21:22 
GeneralRe: Inserting Row thru OLEDB Pin
Chitrack5-Jan-05 21:38
Chitrack5-Jan-05 21:38 
GeneralHello! EveryOne!! Pin
lzzqqq5-Jan-05 19:46
lzzqqq5-Jan-05 19:46 
GeneralRe: Hello! EveryOne!! Pin
IsaacLitingjun5-Jan-05 21:31
IsaacLitingjun5-Jan-05 21:31 
GeneralRe: Hello! EveryOne!! Pin
toxcct6-Jan-05 3:25
toxcct6-Jan-05 3:25 
AnswerRe: passing parameters to Winexec() command help? Pin
lzzqqq5-Jan-05 19:24
lzzqqq5-Jan-05 19:24 
GeneralRe: passing parameters to Winexec() command help? Pin
lzzqqq5-Jan-05 19:28
lzzqqq5-Jan-05 19:28 
Generalplot graphs Pin
RealCoder5-Jan-05 19:05
RealCoder5-Jan-05 19:05 

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.