Click here to Skip to main content
15,891,734 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "The application has requested the Runtime to terminate it in an unusual way" CRT error?? [modified] Pin
JackPuppy8-Mar-09 1:22
JackPuppy8-Mar-09 1:22 
GeneralRe: "The application has requested the Runtime to terminate it in an unusual way" CRT error?? Pin
JackPuppy8-Mar-09 1:32
JackPuppy8-Mar-09 1:32 
GeneralRe: "The application has requested the Runtime to terminate it in an unusual way" CRT error?? Pin
Hamid_RT8-Mar-09 3:51
Hamid_RT8-Mar-09 3:51 
GeneralRe: "The application has requested the Runtime to terminate it in an unusual way" CRT error?? Pin
JackPuppy8-Mar-09 5:17
JackPuppy8-Mar-09 5:17 
AnswerRe: "The application has requested the Runtime to terminate it in an unusual way" CRT error?? Pin
Cedric Moonen7-Mar-09 23:44
Cedric Moonen7-Mar-09 23:44 
QuestionA bug about MFC [modified] Pin
Archy_Yu7-Mar-09 16:57
Archy_Yu7-Mar-09 16:57 
AnswerRe: A bug about MFC Pin
Hamid_RT7-Mar-09 19:58
Hamid_RT7-Mar-09 19:58 
GeneralRe: A bug about MFC Pin
Archy_Yu7-Mar-09 21:52
Archy_Yu7-Mar-09 21:52 
void CGobangView::OnDraw(CDC* pDC)
{
CGobangDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);

m_chessboard.LoadBitmap(IDB_ChessBoard); //绑定位图
CGobangView::m_begin.LoadBitmap(IDB_Start);
CGobangView::m_end.LoadBitmap(IDB_Stop);

static int i=0;
if(i==0)
{
CGobangView::Chessboard.CreateCompatibleDC(pDC);
Chessboard.SelectObject(m_chessboard);
CGobangView::Begin.CreateCompatibleDC(pDC);
Begin.SelectObject(m_begin);
CGobangView::End.CreateCompatibleDC(pDC);
End.SelectObject(m_end);
i=1;
}
else
{

}

pDC->BitBlt(0,0,800,600,&Chessboard,0,0,SRCCOPY);
// TODO: add draw code for native data here
}


The above is the code; i only modify the onDraw() function,and The others is the Generated code by MFC wizard.
GeneralRe: A bug about MFC Pin
Perisic, Aleksandar8-Mar-09 1:31
Perisic, Aleksandar8-Mar-09 1:31 
GeneralRe: A bug about MFC Pin
Hamid_RT8-Mar-09 3:51
Hamid_RT8-Mar-09 3:51 
QuestionHelp Please. Pin
FISH7867-Mar-09 14:08
FISH7867-Mar-09 14:08 
AnswerRe: Help Please. Pin
«_Superman_»7-Mar-09 14:31
professional«_Superman_»7-Mar-09 14:31 
GeneralRe: Help Please. Pin
FISH7867-Mar-09 14:37
FISH7867-Mar-09 14:37 
GeneralRe: Help Please. Pin
«_Superman_»7-Mar-09 14:40
professional«_Superman_»7-Mar-09 14:40 
GeneralRe: Help Please. Pin
FISH7867-Mar-09 15:04
FISH7867-Mar-09 15:04 
Questionabout MBCS and unicode in Visual C++ 2005 Pin
DSPCottage7-Mar-09 7:42
DSPCottage7-Mar-09 7:42 
AnswerRe: about MBCS and unicode in Visual C++ 2005 Pin
Code-o-mat7-Mar-09 9:32
Code-o-mat7-Mar-09 9:32 
AnswerRe: about MBCS and unicode in Visual C++ 2005 Pin
«_Superman_»7-Mar-09 13:45
professional«_Superman_»7-Mar-09 13:45 
QuestionWhat datatype?? Pin
gothic_coder7-Mar-09 7:39
gothic_coder7-Mar-09 7:39 
AnswerRe: What datatype?? Pin
Perspx7-Mar-09 8:31
Perspx7-Mar-09 8:31 
AnswerRe: What datatype?? Pin
Stuart Dootson7-Mar-09 12:10
professionalStuart Dootson7-Mar-09 12:10 
GeneralRe: What datatype?? Pin
gothic_coder7-Mar-09 19:16
gothic_coder7-Mar-09 19:16 
GeneralRe: What datatype?? Pin
Stuart Dootson8-Mar-09 0:35
professionalStuart Dootson8-Mar-09 0:35 
GeneralRe: What datatype?? Pin
gothic_coder8-Mar-09 20:23
gothic_coder8-Mar-09 20:23 
GeneralRe: What datatype?? Pin
Stuart Dootson8-Mar-09 22:06
professionalStuart Dootson8-Mar-09 22:06 

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.