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

C / C++ / MFC

 
AnswerRe: SQLBindParameter not working Pin
JudyL_MD30-Nov-07 2:30
JudyL_MD30-Nov-07 2:30 
QuestionSQLBindParameter problem Pin
prithaa29-Nov-07 22:21
prithaa29-Nov-07 22:21 
AnswerRe: SQLBindParameter problem Pin
David Crow30-Nov-07 3:32
David Crow30-Nov-07 3:32 
QuestionProblem about VS2005 Pin
kcynic29-Nov-07 21:00
kcynic29-Nov-07 21:00 
AnswerRe: Problem about VS2005 Pin
Lord Kixdemp29-Nov-07 22:05
Lord Kixdemp29-Nov-07 22:05 
GeneralRe: Problem about VS2005 Pin
kcynic30-Nov-07 0:25
kcynic30-Nov-07 0:25 
AnswerRe: Problem about VS2005 Pin
Cedric Moonen30-Nov-07 0:54
Cedric Moonen30-Nov-07 0:54 
QuestionSending WM_PAINT anytime? (no MFC) Pin
Lord Kixdemp29-Nov-07 20:54
Lord Kixdemp29-Nov-07 20:54 
Hello, my fellow programmers!

I'm trying to make a (simple) game using the Windows API. There's no animation, and probably won't be any time in the future, so the only time the game screen (which is stored in its own control) needs to be updated is right after user input.

I got this working right by using InvalidateRect(hwnd, NULL, FALSE); after handling WM_KEYDOWN, but this causes a bit of flicker... I thought, "isn't there a vsync() style function?", but then, if the flicker is as noticeable as it is, then that means it's taking too much time to draw the game, which isn't good.

I thought of using dirty rectangles (easy task since the game only consists of 32x32 tiles), but would that completely remove the flicker? Even on slower machines?

Thanks in advance!

Windows Calculator told me I will die at 28. Frown | :(

AnswerRe: Sending WM_PAINT anytime? (no MFC) Pin
Hamid_RT29-Nov-07 20:59
Hamid_RT29-Nov-07 20:59 
GeneralRe: Sending WM_PAINT anytime? (no MFC) Pin
Lord Kixdemp29-Nov-07 21:10
Lord Kixdemp29-Nov-07 21:10 
GeneralRe: Sending WM_PAINT anytime? (no MFC) Pin
Hamid_RT29-Nov-07 23:01
Hamid_RT29-Nov-07 23:01 
QuestionRe: Sending WM_PAINT anytime? (no MFC) Pin
Nelek29-Nov-07 23:58
protectorNelek29-Nov-07 23:58 
QuestionRe: Sending WM_PAINT anytime? (no MFC) Pin
CPallini29-Nov-07 21:11
mveCPallini29-Nov-07 21:11 
AnswerRe: Sending WM_PAINT anytime? (no MFC) Pin
Lord Kixdemp29-Nov-07 21:19
Lord Kixdemp29-Nov-07 21:19 
GeneralReally Pin
CPallini29-Nov-07 21:37
mveCPallini29-Nov-07 21:37 
GeneralRe: Really Pin
Lord Kixdemp29-Nov-07 22:02
Lord Kixdemp29-Nov-07 22:02 
GeneralUhm... Pin
CPallini29-Nov-07 22:10
mveCPallini29-Nov-07 22:10 
GeneralRe: Uhm... Pin
Lord Kixdemp29-Nov-07 22:29
Lord Kixdemp29-Nov-07 22:29 
Questionerror Pin
keyto29-Nov-07 20:22
keyto29-Nov-07 20:22 
AnswerRe: error Pin
Hamid_RT29-Nov-07 20:39
Hamid_RT29-Nov-07 20:39 
AnswerRe: error Pin
Cedric Moonen29-Nov-07 21:22
Cedric Moonen29-Nov-07 21:22 
QuestionHow to Chage a html file content using ISAPI in MFC Pin
Jothi.G8129-Nov-07 19:53
Jothi.G8129-Nov-07 19:53 
Questioncan anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
philiptabraham29-Nov-07 18:47
philiptabraham29-Nov-07 18:47 
AnswerRe: can anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
Hamid_RT29-Nov-07 18:52
Hamid_RT29-Nov-07 18:52 
AnswerRe: can anybody tell me how to convert a jpg image to a 24 bit bmp image Pin
Paresh Chitte29-Nov-07 18:57
Paresh Chitte29-Nov-07 18:57 

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.