Click here to Skip to main content
15,917,641 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionURGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
rishimohan26-Sep-07 19:45
rishimohan26-Sep-07 19:45 
AnswerRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
Nelek26-Sep-07 20:10
protectorNelek26-Sep-07 20:10 
GeneralRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
rishimohan26-Sep-07 21:16
rishimohan26-Sep-07 21:16 
GeneralRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
Nelek26-Sep-07 22:57
protectorNelek26-Sep-07 22:57 
GeneralRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
rishimohan27-Sep-07 19:42
rishimohan27-Sep-07 19:42 
AnswerRe: URGENT!!!!! HELP PLEASE!!!!!!!!!!! Pin
toxcct26-Sep-07 21:44
toxcct26-Sep-07 21:44 
QuestionSend Unsigned Char* using Winsock.h Pin
wira1guys26-Sep-07 16:41
wira1guys26-Sep-07 16:41 
QuestionRe: Send Unsigned Char* using Winsock.h Pin
David Crow26-Sep-07 16:51
David Crow26-Sep-07 16:51 
AnswerRe: Send Unsigned Char* using Winsock.h Pin
wira1guys26-Sep-07 17:04
wira1guys26-Sep-07 17:04 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
Cedric Moonen26-Sep-07 20:05
Cedric Moonen26-Sep-07 20:05 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
David Crow27-Sep-07 2:33
David Crow27-Sep-07 2:33 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
Mark Salsbery27-Sep-07 5:54
Mark Salsbery27-Sep-07 5:54 
GeneralRe: Send Unsigned Char* using Winsock.h Pin
wira1guys1-Oct-07 18:30
wira1guys1-Oct-07 18:30 
QuestionOpenGl and SDI Application Pin
godspeed12326-Sep-07 12:35
godspeed12326-Sep-07 12:35 
AnswerRe: OpenGl and SDI Application Pin
Cedric Moonen26-Sep-07 20:12
Cedric Moonen26-Sep-07 20:12 
GeneralRe: OpenGl and SDI Application Pin
godspeed12326-Sep-07 20:14
godspeed12326-Sep-07 20:14 
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 
Mark Salsbery wrote:
An HDC is only valid within the context of the process that created it.
You can share the handle in a shared data segment but that won't make it
valid to another process.

What part(s) of the device context are you looking to share between processes?


Just an HBITMAP, not fonts, or pens, etc. If one process does a hdc = CreateCompatibleDC(...) and SelectObject(hdc,hbmp), I want any other process to be able to BitBlt to/from it.

This hdc is part of a C++ object I have defined in a shared memory segment of a DLL:

G g_list __attribute__((section ("shared"), shared));

So, every process that accesses that DLL is accessing the exact same g_list and g_list members. The class doesn't contain pointers, with the exception of this hdc which I didn't realize was a local pointer.
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 
GeneralRe: hdc in shared mem Pin
Waldermort26-Sep-07 18:50
Waldermort26-Sep-07 18:50 

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.