Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: show HScrollBar Pin
Stephen Hewitt18-May-06 19:58
Stephen Hewitt18-May-06 19:58 
GeneralRe: show HScrollBar Pin
chybin22-May-06 19:19
chybin22-May-06 19:19 
QuestionHow to use threads? Pin
KongHL18-May-06 15:18
KongHL18-May-06 15:18 
AnswerRe: How to use threads? Pin
Stephen Hewitt18-May-06 15:58
Stephen Hewitt18-May-06 15:58 
GeneralRe: How to use threads? Pin
KongHL18-May-06 16:33
KongHL18-May-06 16:33 
GeneralRe: How to use threads? Pin
ThatsAlok18-May-06 19:46
ThatsAlok18-May-06 19:46 
AnswerRe: How to use threads? Pin
Laxman Auti18-May-06 18:14
Laxman Auti18-May-06 18:14 
GeneralRe: How to use threads? Pin
Stephen Hewitt18-May-06 18:43
Stephen Hewitt18-May-06 18:43 
AnswerRe: How to use threads? Pin
Hamid_RT18-May-06 19:28
Hamid_RT18-May-06 19:28 
GeneralRe: How to use threads? Pin
ThatsAlok18-May-06 19:55
ThatsAlok18-May-06 19:55 
AnswerRe: How to use threads? Pin
Eytukan18-May-06 21:43
Eytukan18-May-06 21:43 
QuestionCFtpConnection::PutFile with blank characters Pin
Ray Manyik18-May-06 12:58
Ray Manyik18-May-06 12:58 
AnswerRe: CFtpConnection::PutFile with blank characters Pin
Ganesh_T18-May-06 18:42
Ganesh_T18-May-06 18:42 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ray Manyik19-May-06 6:07
Ray Manyik19-May-06 6:07 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ganesh_T19-May-06 18:27
Ganesh_T19-May-06 18:27 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ray Manyik22-May-06 5:41
Ray Manyik22-May-06 5:41 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ray Manyik23-May-06 7:23
Ray Manyik23-May-06 7:23 
Questionfunctions and arrays Pin
pp94418-May-06 12:44
pp94418-May-06 12:44 
AnswerRe: functions and arrays Pin
Stephen Hewitt18-May-06 13:47
Stephen Hewitt18-May-06 13:47 
Questionhowto parallel port Pin
mahmoud_bagheri18-May-06 12:22
mahmoud_bagheri18-May-06 12:22 
QuestionObjects and threads Pin
masnu18-May-06 11:00
masnu18-May-06 11:00 
I am trying to update my CViews related to my CDocument. In order for the program to remain resposive as data is read from a file, I need to start a seperate thread to do the reading and updates. The problem I am running into, as I understand it, is that I cannot use C++ objects in this thread. The code I have is:

	<br />
while (m_bRunThread)<br />
{<br />
//Read file and update buffers....<br />
     <br />
this->UpdateAllViews(NULL);  //ERROR HERE<br />
}


Is there a way to accomplish what I want to do?

Thanks.
QuestionRe: Objects and threads Pin
David Crow18-May-06 11:03
David Crow18-May-06 11:03 
AnswerRe: Objects and threads Pin
Chris Losinger18-May-06 11:04
professionalChris Losinger18-May-06 11:04 
AnswerRe: Objects and threads Pin
led mike18-May-06 11:18
led mike18-May-06 11:18 
AnswerRe: Objects and threads Pin
Peter Weyzen18-May-06 12:20
Peter Weyzen18-May-06 12: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.