Click here to Skip to main content
16,005,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDLL to check loaded DLLs Pin
Chris Christian17-Jul-07 7:33
Chris Christian17-Jul-07 7:33 
AnswerRe: DLL to check loaded DLLs Pin
Perspx17-Jul-07 9:31
Perspx17-Jul-07 9:31 
GeneralRe: DLL to check loaded DLLs Pin
Chris Christian17-Jul-07 10:13
Chris Christian17-Jul-07 10:13 
GeneralRe: DLL to check loaded DLLs Pin
Perspx17-Jul-07 10:15
Perspx17-Jul-07 10:15 
QuestionCProgressCtrl freezes during processing Pin
theallmightycpd17-Jul-07 7:01
theallmightycpd17-Jul-07 7:01 
AnswerRe: CProgressCtrl freezes during processing Pin
David Crow17-Jul-07 7:14
David Crow17-Jul-07 7:14 
AnswerRe: CProgressCtrl freezes during processing Pin
Chris Losinger17-Jul-07 7:15
professionalChris Losinger17-Jul-07 7:15 
QuestionRe: CProgressCtrl freezes during processing Pin
theallmightycpd18-Jul-07 5:52
theallmightycpd18-Jul-07 5:52 
Alright, so I had a feeling I would have to implement a worker thread. My problem is that within that thread, I need to be able to update my progress bar constantly and I know that you're not supposed to touch your GUI controls from within the worker thread. I understand that the work around is to use SendMessage() or PostMessage().

My code within my worker thread looks as follows: (m_prg is my progress control)

.
.
.
CStdioFile f1;
if( !f1.Open( pFileName, CFile::modeRead ) )
{ /* error */ }

int totSize = f1.GetLength();
m_prg.SetRange32(0, totSize); <--GUI freezes here
int curSize = 0;
m_prg.SetPos(curSize);
.
.
.

What I've got so far is that every time I want to call m_prg, I need to do it through SendMessage() or PostMessage(). The thing is that I know nothing about these functions. How do I implement them? I can't seem to figure it out.


Help would be greatly appreciated. Thanks.
AnswerRe: CProgressCtrl freezes during processing Pin
Chris Losinger18-Jul-07 6:17
professionalChris Losinger18-Jul-07 6:17 
AnswerRe: CProgressCtrl freezes during processing Pin
Mark Salsbery18-Jul-07 6:46
Mark Salsbery18-Jul-07 6:46 
AnswerRe: CProgressCtrl freezes during processing Pin
Mark Salsbery17-Jul-07 7:31
Mark Salsbery17-Jul-07 7:31 
AnswerRe: CProgressCtrl freezes during processing Pin
Hamid_RT25-Jul-07 8:22
Hamid_RT25-Jul-07 8:22 
QuestionwinInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran17-Jul-07 6:46
Jayapal Chandran17-Jul-07 6:46 
AnswerRe: winInet - FTP - overlapped i/o operation in progress - Pin
Mark Salsbery17-Jul-07 7:44
Mark Salsbery17-Jul-07 7:44 
GeneralRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran17-Jul-07 9:31
Jayapal Chandran17-Jul-07 9:31 
QuestionRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran19-Jul-07 5:39
Jayapal Chandran19-Jul-07 5:39 
AnswerRe: winInet - FTP - overlapped i/o operation in progress - Pin
Mark Salsbery19-Jul-07 6:02
Mark Salsbery19-Jul-07 6:02 
GeneralRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran19-Jul-07 7:25
Jayapal Chandran19-Jul-07 7:25 
GeneralRe: winInet - FTP - overlapped i/o operation in progress - Pin
Mark Salsbery19-Jul-07 7:31
Mark Salsbery19-Jul-07 7:31 
GeneralRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran19-Jul-07 8:12
Jayapal Chandran19-Jul-07 8:12 
QuestionRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran24-Jul-07 3:13
Jayapal Chandran24-Jul-07 3:13 
Questionhelp: no audio in directshow DES Pin
liur1717-Jul-07 5:33
liur1717-Jul-07 5:33 
QuestionSharing without seeing the code, possible? Pin
Joe Smith IX17-Jul-07 4:30
Joe Smith IX17-Jul-07 4:30 
AnswerRe: Sharing without seeing the code, possible? Pin
jhwurmbach17-Jul-07 5:01
jhwurmbach17-Jul-07 5:01 
GeneralRe: Sharing without seeing the code, possible? Pin
Joe Smith IX17-Jul-07 5:13
Joe Smith IX17-Jul-07 5:13 

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.