Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenGl and SDI Application Pin
Cedric Moonen26-Sep-07 20:23
Cedric Moonen26-Sep-07 20:23 
AnswerRe: OpenGl and SDI Application Pin
Russell'26-Sep-07 22:49
Russell'26-Sep-07 22:49 
Questionhdc in shared mem Pin
Force Code26-Sep-07 11:54
Force Code26-Sep-07 11:54 
AnswerRe: hdc in shared mem Pin
Mark Salsbery26-Sep-07 13:47
Mark Salsbery26-Sep-07 13:47 
GeneralRe: hdc in shared mem [modified] Pin
Force Code26-Sep-07 14:11
Force Code26-Sep-07 14:11 
GeneralRe: hdc in shared mem Pin
Waldermort26-Sep-07 15:12
Waldermort26-Sep-07 15:12 
GeneralRe: hdc in shared mem Pin
Mark Salsbery26-Sep-07 17:02
Mark Salsbery26-Sep-07 17:02 
GeneralRe: hdc in shared mem Pin
Force Code26-Sep-07 17:23
Force Code26-Sep-07 17:23 
Mark Salsbery wrote:
I was going to suggest the same thing as WalderMort -
A DIB section through a named file mapping (in-memory).

All the info you need to create the DIBSection and a
memory DC in the second process can be shared.

See CreateDIBSection()[^].


We must be looking at documentation near simultaneously, somehow. I saw the file mapping thing but ruled it out as too byzantine (for my tastes).

What I did instead was to make hdc static in the class - which results in each process having its own copy - strangely. Since the class is in shared memory, making it nonstatic means every process has the same copy - static results in the opposite in this case. Then I have another new static member local_cnt. if local_cnt != (nonstatic)cnt then the static hdc is deleted and recreated (thus synchronizing with changes elsewhere.
GeneralRe: hdc in shared mem Pin
Waldermort26-Sep-07 18:50
Waldermort26-Sep-07 18:50 
GeneralRe: hdc in shared mem Pin
Mark Salsbery27-Sep-07 5:09
Mark Salsbery27-Sep-07 5:09 
QuestionCStatic Image Painting problem Pin
shivrajbhosale26-Sep-07 7:14
shivrajbhosale26-Sep-07 7:14 
AnswerRe: CStatic Image Painting problem Pin
Mark Salsbery26-Sep-07 7:55
Mark Salsbery26-Sep-07 7:55 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:27
shivrajbhosale27-Sep-07 7:27 
GeneralRe: CStatic Image Painting problem Pin
Mark Salsbery27-Sep-07 7:39
Mark Salsbery27-Sep-07 7:39 
AnswerRe: CStatic Image Painting problem Pin
Hamid_RT26-Sep-07 18:55
Hamid_RT26-Sep-07 18:55 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:29
shivrajbhosale27-Sep-07 7:29 
AnswerRe: CStatic Image Painting problem Pin
zakkas248327-Sep-07 0:20
zakkas248327-Sep-07 0:20 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:24
shivrajbhosale27-Sep-07 7:24 
GeneralRe: CStatic Image Painting problem Pin
Shog927-Sep-07 8:10
sitebuilderShog927-Sep-07 8:10 
QuestionTab Control -- dialog resource question Pin
Izk26-Sep-07 7:01
Izk26-Sep-07 7:01 
AnswerRe: Tab Control -- dialog resource question Pin
Maximilien26-Sep-07 7:13
Maximilien26-Sep-07 7:13 
GeneralRe: Tab Control -- dialog resource question Pin
Izk26-Sep-07 9:09
Izk26-Sep-07 9:09 
GeneralRe: Tab Control -- dialog resource question -- Update solution Pin
Izk27-Sep-07 8:38
Izk27-Sep-07 8:38 
GeneralRe: Tab Control -- dialog resource question -- Updated further Pin
Izk27-Sep-07 10:59
Izk27-Sep-07 10:59 
QuestionGood C site for C++ programmer Pin
Mark J. Miller26-Sep-07 5:48
Mark J. Miller26-Sep-07 5:48 

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.