Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAny module to encode and decode from bufferarray with a short time ? Pin
James Duy Trinh (VietDoor)13-Jan-06 0:37
James Duy Trinh (VietDoor)13-Jan-06 0:37 
QuestionCListCtrl: Automatic Scroll- Down Pin
romuzu13-Jan-06 0:27
romuzu13-Jan-06 0:27 
AnswerRe: CListCtrl: Automatic Scroll- Down Pin
Rajesh R Subramanian13-Jan-06 0:37
professionalRajesh R Subramanian13-Jan-06 0:37 
AnswerRe: CListCtrl: Automatic Scroll- Down Pin
khan++13-Jan-06 1:35
khan++13-Jan-06 1:35 
GeneralRe: CListCtrl: Automatic Scroll- Down Pin
Rajesh R Subramanian13-Jan-06 1:48
professionalRajesh R Subramanian13-Jan-06 1:48 
QuestionCan i pass MFC Objects in between thread ? Pin
vikas amin12-Jan-06 23:20
vikas amin12-Jan-06 23:20 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Owner drawn12-Jan-06 23:31
Owner drawn12-Jan-06 23:31 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Stephen Hewitt12-Jan-06 23:41
Stephen Hewitt12-Jan-06 23:41 
MFC objects can not be passed between threads. If you want to do this you have to extract the raw handle from the object in the first thread and use it to create another object in the second thread. For example:

In thread 1:
------------
CDC DC;
// Stuff happens here.
PassObjectToSecondThread(DC.m_hDC);


In thread 2:
------------
HDC hDC = GetHandleFromFirstThread();
CDC* pDC = CDC::FromHandle(hDC);
// Use "pDC" here.

see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Multithreading.3a_.Programming_Tips.asp for details.

Steve
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Roger Stoltz12-Jan-06 23:45
Roger Stoltz12-Jan-06 23:45 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
Prakash Nadar12-Jan-06 23:45
Prakash Nadar12-Jan-06 23:45 
AnswerRe: Can i pass MFC Objects in between thread ? Pin
ThatsAlok15-Jan-06 18:19
ThatsAlok15-Jan-06 18:19 
AnswerThank you everyone Pin
vikas amin16-Jan-06 1:10
vikas amin16-Jan-06 1:10 
Questionwprintf() could not display unicode chars which is > 255 to console? Pin
wangdave12-Jan-06 23:11
wangdave12-Jan-06 23:11 
QuestionHow to block a window ? Pin
leenmie12-Jan-06 22:50
leenmie12-Jan-06 22:50 
AnswerRe: How to block a window ? Pin
Stephen Hewitt12-Jan-06 23:49
Stephen Hewitt12-Jan-06 23:49 
AnswerRe: How to block a window ? Pin
Roger Stoltz13-Jan-06 0:00
Roger Stoltz13-Jan-06 0:00 
GeneralRe: How to block a window ? Pin
Stephen Hewitt13-Jan-06 0:14
Stephen Hewitt13-Jan-06 0:14 
GeneralRe: How to block a window ? Pin
leenmie13-Jan-06 0:44
leenmie13-Jan-06 0:44 
GeneralRe: How to block a window ? Pin
Stephen Hewitt13-Jan-06 1:06
Stephen Hewitt13-Jan-06 1:06 
AnswerRe: How to block a window ? Pin
Koushik Biswas13-Jan-06 13:51
Koushik Biswas13-Jan-06 13:51 
AnswerRe: How to block a window ? Pin
toxcct13-Jan-06 0:53
toxcct13-Jan-06 0:53 
GeneralRe: How to block a window ? Pin
leenmie13-Jan-06 2:15
leenmie13-Jan-06 2:15 
AnswerRe: How to block a window ? Pin
FarPointer13-Jan-06 3:47
FarPointer13-Jan-06 3:47 
AnswerRe: How to block a window ? Pin
Koushik Biswas13-Jan-06 13:55
Koushik Biswas13-Jan-06 13:55 
GeneralRe: How to block a window ? Pin
leenmie13-Jan-06 15:47
leenmie13-Jan-06 15:47 

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.