Click here to Skip to main content
16,008,954 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat are threads and processes Pin
29-Mar-01 8:40
suss29-Mar-01 8:40 
AnswerRe: what are threads and processes Pin
Wayne Fuller29-Mar-01 8:59
Wayne Fuller29-Mar-01 8:59 
GeneralRe: what are threads and processes Pin
29-Mar-01 9:24
suss29-Mar-01 9:24 
GeneralRe: what are threads and processes Pin
Scott!29-Mar-01 9:48
Scott!29-Mar-01 9:48 
GeneralRe: what are threads and processes Pin
Peter Sjöström29-Mar-01 21:00
Peter Sjöström29-Mar-01 21:00 
AnswerRe: what are threads and processes Pin
Erik Funkenbusch29-Mar-01 11:29
Erik Funkenbusch29-Mar-01 11:29 
GeneralRe: what are threads and processes Pin
30-Mar-01 8:18
suss30-Mar-01 8:18 
GeneralGraphic Error...help!!! Pin
Richard Cheng29-Mar-01 8:08
Richard Cheng29-Mar-01 8:08 
I'm using VC++ to implement a program involving drawing.

CABCDoc* pDoc = GetDocument();
*
*
*
GetDocument()->UpdateAllViews(0); //I use this line as "clearscreen" in the "View" file

In the Drawing function (in seperate file):
void drawing()
for (;;)
{
::receive message from outside (peekmessage()....etc...)
CDCPointer->MoveTo(x,y);
CDCPointer->LineTo(x,y); //draw a dot
if (stop)
break;
}

I use a loop to let the program keep receive message and do drawing. If I use the UpdateAllViews(), nothing special. But after that when I want to terminate this drawing function, error messagebox shown:

"Debug Assertion Failure!
Program: c:\ABC......\ABC.exe
File: Wingdi.cpp
Line: 557

For information.........."

If I didn't use UpdateAllViews(), no problem at all......but if I exit the function and want to do it again....I have to clear the screen first, right?

I can use the UpdateAllViews() anywhere to do the clearscreen.......can anyone help me?
GeneralRe: Graphic Error...help!!! Pin
Wayne Fuller29-Mar-01 8:16
Wayne Fuller29-Mar-01 8:16 
GeneralRe:(More info) Graphic Error...help!!! Pin
Richard Cheng29-Mar-01 8:43
Richard Cheng29-Mar-01 8:43 
QuestionHow can I get the first file of FindFile? Pin
Michael Menne29-Mar-01 7:11
Michael Menne29-Mar-01 7:11 
AnswerRe: How can I get the first file of FindFile? Pin
Gero Gerber29-Mar-01 7:16
Gero Gerber29-Mar-01 7:16 
AnswerRe: How can I get the first file of FindFile? Pin
Wayne Fuller29-Mar-01 8:13
Wayne Fuller29-Mar-01 8:13 
QuestionHow to create button at Run-Time ?? Pin
Vistac29-Mar-01 6:48
Vistac29-Mar-01 6:48 
AnswerRe: How to create button at Run-Time ?? Pin
Christian Graus29-Mar-01 12:35
protectorChristian Graus29-Mar-01 12:35 
GeneralRe: How to create button at Run-Time ?? Pin
Vistac29-Mar-01 15:14
Vistac29-Mar-01 15:14 
Generalforms Pin
29-Mar-01 3:57
suss29-Mar-01 3:57 
GeneralWindows 95 and resource problem Pin
AndyC29-Mar-01 3:53
AndyC29-Mar-01 3:53 
GeneralRe: resource problem Pin
Paolo Messina29-Mar-01 7:06
professionalPaolo Messina29-Mar-01 7:06 
QuestionHow I can play mp3 files from my program Pin
Ahmad29-Mar-01 3:16
Ahmad29-Mar-01 3:16 
AnswerRe: How I can play mp3 files from my program Pin
Thierry Marneffe29-Mar-01 4:21
Thierry Marneffe29-Mar-01 4:21 
AnswerRe: How I can play mp3 files from my program Pin
Thierry Marneffe29-Mar-01 4:21
Thierry Marneffe29-Mar-01 4:21 
AnswerRe: How I can play mp3 files from my program Pin
Christian Graus29-Mar-01 12:39
protectorChristian Graus29-Mar-01 12:39 
GeneralCall Stack Debug Window in VC6 Pin
jerry0davis28-Mar-01 23:46
jerry0davis28-Mar-01 23:46 
GeneralRe: Call Stack Debug Window in VC6 Pin
Tim Deveaux29-Mar-01 4:41
Tim Deveaux29-Mar-01 4:41 

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.