Click here to Skip to main content
15,922,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDisplaying Jpeg Image in MFC Pin
Shivarudrayya H22-Jun-08 20:06
Shivarudrayya H22-Jun-08 20:06 
AnswerRe: Displaying Jpeg Image in MFC Pin
SandipG 22-Jun-08 20:38
SandipG 22-Jun-08 20:38 
AnswerRe: Displaying Jpeg Image in MFC Pin
Hamid_RT23-Jun-08 18:22
Hamid_RT23-Jun-08 18:22 
QuestionUse of Check box in TreeCtrl. Pin
Le@rner22-Jun-08 19:08
Le@rner22-Jun-08 19:08 
QuestionSharing a HBITMAP between 2 applications [modified] Pin
Llasus22-Jun-08 18:41
Llasus22-Jun-08 18:41 
AnswerRe: Sharing a HBITMAP between 2 applications Pin
Naveen22-Jun-08 19:09
Naveen22-Jun-08 19:09 
GeneralRe: Sharing a HBITMAP between 2 applications Pin
Llasus22-Jun-08 19:30
Llasus22-Jun-08 19:30 
GeneralRe: Sharing a HBITMAP between 2 applications[modified] Pin
Naveen22-Jun-08 19:55
Naveen22-Jun-08 19:55 
Llasus wrote:
I was adviced last time to do that. Please refer to this link[^].


I am also confused seeing that. Confused | :confused:

AFAIK, it cannot be shared.

From MSDN:


"GDI objects support only one handle per object. Handles to GDI objects are private to a process. That is, only the process that created the GDI object can use the object handle"

The GDI handles are actually offset to the handle map's that reside in the client side. So when you pass a handle to another process, it simply points to a location in the handle table in that process. Some times, the object in that location will be entirly a different one such as Brush or Pen or some times the object itself is not created. So the result will be unpredictable.

if you want to know more please read the article Give Me a Handle, and I'll Show You an Object[^]


GeneralRe: Sharing a HBITMAP between 2 application Pin
Llasus22-Jun-08 20:12
Llasus22-Jun-08 20:12 
GeneralRe: Sharing a HBITMAP between 2 application Pin
SandipG 22-Jun-08 20:32
SandipG 22-Jun-08 20:32 
GeneralRe: Sharing a HBITMAP between 2 application Pin
Llasus22-Jun-08 20:47
Llasus22-Jun-08 20:47 
GeneralRe: Sharing a HBITMAP between 2 application Pin
SandipG 22-Jun-08 20:33
SandipG 22-Jun-08 20:33 
GeneralRe: Sharing a HBITMAP between 2 application Pin
Naveen22-Jun-08 20:55
Naveen22-Jun-08 20:55 
AnswerRe: Sharing a HBITMAP between 2 applications Pin
Hamid_RT23-Jun-08 18:21
Hamid_RT23-Jun-08 18:21 
GeneralRe: Sharing a HBITMAP between 2 applications Pin
Llasus24-Jun-08 20:25
Llasus24-Jun-08 20:25 
Questionbizarre problem with files Pin
lahom22-Jun-08 17:25
lahom22-Jun-08 17:25 
AnswerRe: bizarre problem with files [modified] Pin
Saurabh.Garg22-Jun-08 17:58
Saurabh.Garg22-Jun-08 17:58 
GeneralRe: bizarre problem with files Pin
lahom23-Jun-08 6:08
lahom23-Jun-08 6:08 
GeneralRe: bizarre problem with files Pin
Saurabh.Garg23-Jun-08 14:39
Saurabh.Garg23-Jun-08 14:39 
AnswerRe: bizarre problem with files Pin
CPallini23-Jun-08 0:24
mveCPallini23-Jun-08 0:24 
GeneralRe: bizarre problem with files Pin
lahom23-Jun-08 6:10
lahom23-Jun-08 6:10 
GeneralRe: bizarre problem with files Pin
CPallini23-Jun-08 6:42
mveCPallini23-Jun-08 6:42 
GeneralRe: bizarre problem with files Pin
lahom25-Jun-08 6:55
lahom25-Jun-08 6:55 
QuestionRe: bizarre problem with files Pin
CPallini25-Jun-08 11:07
mveCPallini25-Jun-08 11:07 
AnswerRe: bizarre problem with files Pin
lahom25-Jun-08 12:25
lahom25-Jun-08 12: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.