Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhelp require? Pin
imran_rafique25-Sep-02 10:50
imran_rafique25-Sep-02 10:50 
GeneralAccessing controls on other processes. Pin
Anonymous25-Sep-02 10:37
Anonymous25-Sep-02 10:37 
GeneralRe: Accessing controls on other processes. Pin
Joaquín M López Muñoz25-Sep-02 11:01
Joaquín M López Muñoz25-Sep-02 11:01 
GeneralRe: Accessing controls on other processes. Pin
Anonymous25-Sep-02 11:30
Anonymous25-Sep-02 11:30 
GeneralRe: Accessing controls on other processes. Pin
Daniel Ferguson25-Sep-02 11:59
Daniel Ferguson25-Sep-02 11:59 
GeneralRe: Accessing controls on other processes. Pin
Shog925-Sep-02 12:14
sitebuilderShog925-Sep-02 12:14 
GeneralRe: Accessing controls on other processes. Pin
Anonymous25-Sep-02 13:51
Anonymous25-Sep-02 13:51 
GeneralRe: Accessing controls on other processes. Pin
Michael Dunn25-Sep-02 19:24
sitebuilderMichael Dunn25-Sep-02 19:24 
Each program runs in its own protected memory space. You cannot just pass in pointers because memory in your app's space cannot be accessed by another app (not without doing shared memory).
The subclass window calls effectively redirect the control's window proc to your own, which is not in the same process, so it will crash immediately.
Some messages can be passed, as long as they don't involve pointers. That's why LVM_DELETEALLITEMS works, it has no parameters.

Now, the exception is the USER controls (the ones from Win 3.1, list box being one of them). The OS is designed to handle messages sent between processes for Win 3.1 compatibility (where this was possible because all apps shared the same memory). However this is a special case, no controls introduced with Win 95 or later work this way.

--Mike--
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm

QuestionWhy does my whole app close when i close one of it's popup windows? Pin
Anonymous25-Sep-02 10:18
Anonymous25-Sep-02 10:18 
AnswerRe: Why does my whole app close when i close one of it's popup windows? Pin
Joaquín M López Muñoz25-Sep-02 10:56
Joaquín M López Muñoz25-Sep-02 10:56 
Generalcounter Pin
Doug7725-Sep-02 10:12
sussDoug7725-Sep-02 10:12 
GeneralRe: counter Pin
valikac25-Sep-02 10:48
valikac25-Sep-02 10:48 
GeneralDLL Project to Static Lib. Pin
Jawache25-Sep-02 8:40
Jawache25-Sep-02 8:40 
GeneralRe: DLL Project to Static Lib. Pin
valikac25-Sep-02 10:50
valikac25-Sep-02 10:50 
GeneralRe: DLL Project to Static Lib. Pin
Mike Nordell25-Sep-02 20:32
Mike Nordell25-Sep-02 20:32 
GeneralRe: DLL Project to Static Lib. Pin
Jawache25-Sep-02 22:29
Jawache25-Sep-02 22:29 
QuestionDAORecordsets? Pin
slacker25-Sep-02 8:00
slacker25-Sep-02 8:00 
GeneralAdd Resource Option Fails in .NET Pin
slacker25-Sep-02 7:56
slacker25-Sep-02 7:56 
Generaldebug build OK, release build fails Pin
tomc25-Sep-02 6:56
tomc25-Sep-02 6:56 
GeneralRe: debug build OK, release build fails Pin
jmkhael25-Sep-02 6:59
jmkhael25-Sep-02 6:59 
GeneralRe: debug build OK, release build fails Pin
tomc25-Sep-02 7:14
tomc25-Sep-02 7:14 
GeneralLoop Pin
Doug7725-Sep-02 6:30
sussDoug7725-Sep-02 6:30 
GeneralRe: Loop Pin
jmkhael25-Sep-02 6:33
jmkhael25-Sep-02 6:33 
Generalmodulus and double Pin
pnpfriend25-Sep-02 6:09
pnpfriend25-Sep-02 6:09 
GeneralRe: modulus and double Pin
jmkhael25-Sep-02 6:25
jmkhael25-Sep-02 6:25 

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.