Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
pavanbabut3-Apr-06 12:41
pavanbabut3-Apr-06 12:41 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
includeh103-Apr-06 12:51
includeh103-Apr-06 12:51 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
pavanbabut3-Apr-06 13:34
pavanbabut3-Apr-06 13:34 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
Amit Agarrwal3-Apr-06 19:05
Amit Agarrwal3-Apr-06 19:05 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
pavanbabut3-Apr-06 19:08
pavanbabut3-Apr-06 19:08 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
Amit Agarrwal3-Apr-06 19:38
Amit Agarrwal3-Apr-06 19:38 
GeneralRe: Help on error C2632: 'char' followed by 'char' is illegal Pin
pavanbabut4-Apr-06 18:30
pavanbabut4-Apr-06 18:30 
QuestionProgress dialog for long-time processing Pin
JRGlide3-Apr-06 11:21
JRGlide3-Apr-06 11:21 
This has probably been solved a million times before, but I can't find anything. I have an Import option that allows the user to convert data from one format to another, which can be time-consuming. Therefore, I would like to have a dialog box with a progress bar.

My first approach was to create a modeless dialog and update the file list and progress bar as I go. But my problem is the dialog never finishes displaying before processing begins, so I can't use the Cancel button. I'll assume its because I'm in a loop and never return to the system to process the dialog messages. I tried doing a PeekMessage but that doesn't seem to help.

My second approach (which I haven't tried yet) is to do a modal dialog with the dialog class doing all the processing. In this case I would process WM_KICKIDLE messages for the processing.

I also considered using the OnIdle callback to do the processing. But the problem with that approach is OnIdle is in WinApp and the processing is taking place in the View window.

I guess my real question is, how is this normally done? You see see progress dialogs all the time in commercial programs, is there a "standard" way or best way that this is normally done?

Thank you.

Jim
AnswerRe: Progress dialog for long-time processing Pin
Ryan Binns3-Apr-06 18:42
Ryan Binns3-Apr-06 18:42 
AnswerRe: Progress dialog for long-time processing Pin
Ștefan-Mihai MOGA4-Apr-06 2:32
professionalȘtefan-Mihai MOGA4-Apr-06 2:32 
AnswerRe: Progress dialog for long-time processing Pin
JRGlide4-Apr-06 11:54
JRGlide4-Apr-06 11:54 
Questiondirectshow filter debugging Pin
yongwpi3-Apr-06 10:32
yongwpi3-Apr-06 10:32 
Questionsnding a float in SendMessage Pin
ns3-Apr-06 10:04
ns3-Apr-06 10:04 
AnswerRe: snding a float in SendMessage Pin
David Crow3-Apr-06 10:09
David Crow3-Apr-06 10:09 
GeneralRe: snding a float in SendMessage Pin
ns3-Apr-06 10:55
ns3-Apr-06 10:55 
GeneralRe: snding a float in SendMessage Pin
Milton Karimbekallil3-Apr-06 14:08
Milton Karimbekallil3-Apr-06 14:08 
GeneralRe: snding a float in SendMessage Pin
bonosa3-Apr-06 15:21
bonosa3-Apr-06 15:21 
QuestionSimple Class for RS232 Communication Pin
fambi_mail3-Apr-06 9:22
fambi_mail3-Apr-06 9:22 
AnswerRe: Simple Class for RS232 Communication Pin
Iain Clarke, Warrior Programmer3-Apr-06 13:45
Iain Clarke, Warrior Programmer3-Apr-06 13:45 
GeneralRe: Simple Class for RS232 Communication Pin
fambi_mail3-Apr-06 20:17
fambi_mail3-Apr-06 20:17 
GeneralRe: Simple Class for RS232 Communication Pin
Iain Clarke, Warrior Programmer3-Apr-06 22:04
Iain Clarke, Warrior Programmer3-Apr-06 22:04 
AnswerRe: Simple Class for RS232 Communication Pin
Ștefan-Mihai MOGA3-Apr-06 22:51
professionalȘtefan-Mihai MOGA3-Apr-06 22:51 
QuestionDrawing CEdit to a given DC Pin
Andre xxxxxxx3-Apr-06 8:37
Andre xxxxxxx3-Apr-06 8:37 
AnswerRe: Drawing CEdit to a given DC Pin
includeh103-Apr-06 12:47
includeh103-Apr-06 12:47 
QuestionUSB Pin
surfman193-Apr-06 8:37
surfman193-Apr-06 8:37 

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.