Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to execute an external program based on file extension Pin
William Engberts8-Sep-10 0:12
William Engberts8-Sep-10 0:12 
AnswerRe: How to execute an external program based on file extension Pin
Niklas L8-Sep-10 0:36
Niklas L8-Sep-10 0:36 
GeneralRe: How to execute an external program based on file extension Pin
William Engberts8-Sep-10 22:08
William Engberts8-Sep-10 22:08 
AnswerRe: How to execute an external program based on file extension Pin
KingsGambit8-Sep-10 0:38
KingsGambit8-Sep-10 0:38 
JokeRe: How to execute an external program based on file extension Pin
Iain Clarke, Warrior Programmer8-Sep-10 21:00
Iain Clarke, Warrior Programmer8-Sep-10 21:00 
GeneralRe: How to execute an external program based on file extension Pin
William Engberts8-Sep-10 22:11
William Engberts8-Sep-10 22:11 
QuestionWM_PAINT [modified] Pin
Krauze7-Sep-10 16:35
Krauze7-Sep-10 16:35 
AnswerRe: WM_PAINT Pin
Luc Pattyn7-Sep-10 17:01
sitebuilderLuc Pattyn7-Sep-10 17:01 
Krauze wrote:
So I need access files in CDialog::OnPaint().


I don't think so. OnPaint() may be called hundreds of times, when your window gets resized, maximized, restored, covered and uncovered by some other window, etc. So you should read the file once, beforehand, outside OnPaint(); store all the information in an appropriate data structure, and use that inside OnPaint().

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: WM_PAINT Pin
Krauze7-Sep-10 18:14
Krauze7-Sep-10 18:14 
GeneralRe: WM_PAINT Pin
Chandrasekharan P7-Sep-10 20:03
Chandrasekharan P7-Sep-10 20:03 
GeneralRe: WM_PAINT Pin
Cedric Moonen7-Sep-10 20:17
Cedric Moonen7-Sep-10 20:17 
GeneralRe: WM_PAINT Pin
Iain Clarke, Warrior Programmer8-Sep-10 2:00
Iain Clarke, Warrior Programmer8-Sep-10 2:00 
GeneralRe: WM_PAINT Pin
Krauze8-Sep-10 4:08
Krauze8-Sep-10 4:08 
GeneralRe: WM_PAINT Pin
Emilio Garavaglia8-Sep-10 2:09
Emilio Garavaglia8-Sep-10 2:09 
GeneralRe: WM_PAINT Pin
Cedric Moonen8-Sep-10 2:32
Cedric Moonen8-Sep-10 2:32 
QuestionHow to align output to text file in vb.net Pin
Andraw Tang7-Sep-10 12:49
Andraw Tang7-Sep-10 12:49 
AnswerRe: How to align output to text file in vb.net Pin
Tim Craig7-Sep-10 17:31
Tim Craig7-Sep-10 17:31 
AnswerRe: How to align output to text file in vb.net Pin
Cedric Moonen7-Sep-10 20:18
Cedric Moonen7-Sep-10 20:18 
Questionsetlocale() doesn't work! Pin
Green Fuze7-Sep-10 8:49
Green Fuze7-Sep-10 8:49 
AnswerRe: setlocale() doesn't work! Pin
Richard MacCutchan7-Sep-10 10:10
mveRichard MacCutchan7-Sep-10 10:10 
GeneralRe: setlocale() doesn't work! Pin
Green Fuze7-Sep-10 10:17
Green Fuze7-Sep-10 10:17 
GeneralRe: setlocale() doesn't work! Pin
Richard MacCutchan7-Sep-10 12:14
mveRichard MacCutchan7-Sep-10 12:14 
GeneralRe: setlocale() doesn't work! Pin
Green Fuze7-Sep-10 20:41
Green Fuze7-Sep-10 20:41 
GeneralRe: setlocale() doesn't work! Pin
Richard MacCutchan8-Sep-10 2:54
mveRichard MacCutchan8-Sep-10 2:54 
AnswerRe: setlocale() doesn't work! Pin
Aescleal7-Sep-10 21:20
Aescleal7-Sep-10 21:20 

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.