Click here to Skip to main content
15,893,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Register a TLB file? Pin
Ista31-May-06 5:33
Ista31-May-06 5:33 
GeneralRe: Register a TLB file? Pin
Roger Stoltz31-May-06 6:25
Roger Stoltz31-May-06 6:25 
GeneralRe: Register a TLB file? Pin
Ista31-May-06 7:47
Ista31-May-06 7:47 
AnswerRe: Register a TLB file? Pin
V.31-May-06 8:38
professionalV.31-May-06 8:38 
GeneralRe: Register a TLB file? Pin
Ista31-May-06 8:45
Ista31-May-06 8:45 
GeneralRe: Register a TLB file? [modified] Pin
V.31-May-06 8:57
professionalV.31-May-06 8:57 
GeneralRe: Register a TLB file? [modified] Pin
Ista31-May-06 9:00
Ista31-May-06 9:00 
QuestionIllegal Instruction Pin
Russell'31-May-06 3:22
Russell'31-May-06 3:22 
AnswerRe: Illegal Instruction Pin
Chris Losinger31-May-06 3:28
professionalChris Losinger31-May-06 3:28 
GeneralRe: Illegal Instruction Pin
Russell'31-May-06 3:32
Russell'31-May-06 3:32 
GeneralRe: Illegal Instruction Pin
Cedric Moonen31-May-06 3:46
Cedric Moonen31-May-06 3:46 
GeneralRe: Illegal Instruction Pin
Russell'31-May-06 4:06
Russell'31-May-06 4:06 
QuestionUnable to get device context Pin
shivditya31-May-06 3:02
shivditya31-May-06 3:02 
AnswerRe: Unable to get device context Pin
Hamid_RT31-May-06 3:15
Hamid_RT31-May-06 3:15 
AnswerRe: Unable to get device context Pin
Sarath C31-May-06 3:28
Sarath C31-May-06 3:28 
GeneralRe: Unable to get device context Pin
shivditya1-Jun-06 20:10
shivditya1-Jun-06 20:10 
AnswerRe: Unable to get device context Pin
eli1502197931-May-06 4:26
eli1502197931-May-06 4:26 
shivditya wrote:
CWnd *cwnd,*cwnd1;
cwnd1 = cwnd->GetWindow(1);
CDC* pDC = cwnd1->GetDC();


You are using cwnd but it was never initialized....
The DC of which window do you want to get?
Is eng is part of that window?
If so , try using this code:
UINT CMy5CYLINDERView::ThreadFunc(LPVOID pParam)
{
   YourWindow *wnd = (YourWindow *)pParam;// You should pass   the handle of the window as pParam 
   CDC* pDC = wnd->GetDC();
   wnd->eng->nextpos(pDC);
   return 0;

}


With best regards,
Eli
QuestionRe: Unable to get device context Pin
shivditya1-Jun-06 20:21
shivditya1-Jun-06 20:21 
QuestionProblem With MSOutLook 2003 when using Mapi Pin
narayanagvs31-May-06 2:51
narayanagvs31-May-06 2:51 
QuestionCreateEx and Popup window Pin
includeh1031-May-06 2:47
includeh1031-May-06 2:47 
AnswerRe: CreateEx and Popup window Pin
Hamid_RT31-May-06 2:52
Hamid_RT31-May-06 2:52 
GeneralRe: CreateEx and Popup window Pin
includeh1031-May-06 2:56
includeh1031-May-06 2:56 
GeneralRe: CreateEx and Popup window Pin
Hamid_RT31-May-06 3:10
Hamid_RT31-May-06 3:10 
AnswerRe: CreateEx and Popup window Pin
Gautam Jain31-May-06 3:22
Gautam Jain31-May-06 3:22 
GeneralRe: CreateEx and Popup window Pin
includeh1031-May-06 3:32
includeh1031-May-06 3:32 

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.