Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can we call dynamic_cast in OnInitDialog Pin
Nish Nishant27-Aug-02 0:30
sitebuilderNish Nishant27-Aug-02 0:30 
AnswerRe: can we call dynamic_cast in OnInitDialog Pin
Tomasz Sowinski27-Aug-02 0:32
Tomasz Sowinski27-Aug-02 0:32 
GeneralRe: can we call dynamic_cast in OnInitDialog Pin
Nish Nishant27-Aug-02 0:36
sitebuilderNish Nishant27-Aug-02 0:36 
GeneralRe: can we call dynamic_cast in OnInitDialog #2 Pin
Nish Nishant27-Aug-02 0:41
sitebuilderNish Nishant27-Aug-02 0:41 
GeneralRe: can we call dynamic_cast in OnInitDialog #2 Pin
Tomasz Sowinski27-Aug-02 0:48
Tomasz Sowinski27-Aug-02 0:48 
GeneralHelp!! DLLs and Installation Package. Pin
gm_coll26-Aug-02 23:35
gm_coll26-Aug-02 23:35 
GeneralRe: Help!! DLLs and Installation Package. Pin
Victor Vogelpoel27-Aug-02 5:24
Victor Vogelpoel27-Aug-02 5:24 
GeneralThread Pin
Mazdak26-Aug-02 23:15
Mazdak26-Aug-02 23:15 
I have a program that search text files in a path that user define.When I click search button it start searching,but the program freeze.So I decide to put this function in a thread.

First:Is that good idea to put it in a thread and does it solve the problem of freezing?I read in MSDN that in worker thread when controlling function exists the thread terminate.My controlling function is recursive function brcause I want to search through directories so is that caused error?


Second:My controling function begins like this:

<br />
UINT FindFile(LPVOID chPath)<br />
{<br />
<br />
  CString strWildcard = (CString&)(chPath);<br />
   <br />
   if (strWildcard == "")<br />
	return 1;<br />
<br />
  CFileFind finder;<br />
<br />
  strWildcard += _T("\\*.*");<br />


It always afetr CFileFind finder line,thrown an unhandled error.Any idea?

Third:How can I access my controls in my dialog inside my controlling funcion?Shoud it be ALWAYS a global function?

Thanks a lot

Mazy

"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"
Kryptonite-3 Doors Down

GeneralRe: Thread Pin
Tomasz Sowinski26-Aug-02 23:23
Tomasz Sowinski26-Aug-02 23:23 
GeneralRe: Thread Pin
Mazdak26-Aug-02 23:40
Mazdak26-Aug-02 23:40 
GeneralRe: Thread Pin
Tomasz Sowinski26-Aug-02 23:48
Tomasz Sowinski26-Aug-02 23:48 
GeneralRe: Thread Pin
Mazdak27-Aug-02 0:08
Mazdak27-Aug-02 0:08 
GeneralRe: Thread Pin
Tomasz Sowinski27-Aug-02 0:16
Tomasz Sowinski27-Aug-02 0:16 
GeneralRe: Thread Pin
Mazdak27-Aug-02 0:53
Mazdak27-Aug-02 0:53 
GeneralRe: Thread Pin
Tomasz Sowinski27-Aug-02 1:00
Tomasz Sowinski27-Aug-02 1:00 
GeneralRe: Thread Pin
Mazdak27-Aug-02 1:37
Mazdak27-Aug-02 1:37 
GeneralRe: Thread Pin
Tomasz Sowinski27-Aug-02 1:39
Tomasz Sowinski27-Aug-02 1:39 
GeneralRe: Thread Pin
Mazdak27-Aug-02 2:17
Mazdak27-Aug-02 2:17 
QuestionWinsock books for MFC? Pin
Anonymous26-Aug-02 23:07
Anonymous26-Aug-02 23:07 
AnswerRe: Winsock books for MFC? Pin
Masaaki Onishi27-Aug-02 4:03
Masaaki Onishi27-Aug-02 4:03 
GeneralBest way to intercommunicate between apps Pin
EiSl26-Aug-02 22:44
EiSl26-Aug-02 22:44 
GeneralRe: Best way to intercommunicate between apps Pin
Tomasz Sowinski26-Aug-02 22:47
Tomasz Sowinski26-Aug-02 22:47 
GeneralRe: Best way to intercommunicate between apps Pin
Pavel Klocek27-Aug-02 0:36
Pavel Klocek27-Aug-02 0:36 
GeneralRe: Best way to intercommunicate between apps Pin
Christian Graus27-Aug-02 1:19
protectorChristian Graus27-Aug-02 1:19 
GeneralRe: Best way to intercommunicate between apps Pin
EiSl27-Aug-02 1:56
EiSl27-Aug-02 1:56 

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.