Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory leak problem Pin
KarstenK26-Mar-09 23:03
mveKarstenK26-Mar-09 23:03 
GeneralRe: Memory leak problem Pin
Pryabu26-Mar-09 23:45
Pryabu26-Mar-09 23:45 
GeneralRe: Memory leak problem Pin
KarstenK26-Mar-09 23:59
mveKarstenK26-Mar-09 23:59 
AnswerRe: Memory leak problem Pin
SandipG 27-Mar-09 0:15
SandipG 27-Mar-09 0:15 
AnswerRe: Memory leak problem Pin
Roger Stoltz27-Mar-09 0:19
Roger Stoltz27-Mar-09 0:19 
AnswerRe: Memory leak problem Pin
Joe Woodbury27-Mar-09 5:54
professionalJoe Woodbury27-Mar-09 5:54 
Questionerror when using pimstore.h and aygshell.h Pin
Le@rner26-Mar-09 22:24
Le@rner26-Mar-09 22:24 
QuestionRe: error when using pimstore.h and aygshell.h Pin
David Crow27-Mar-09 3:11
David Crow27-Mar-09 3:11 
QuestionGame console programming? Pin
Megidolaon26-Mar-09 22:16
Megidolaon26-Mar-09 22:16 
AnswerRe: Game console programming? Pin
CPallini26-Mar-09 22:41
mveCPallini26-Mar-09 22:41 
AnswerRe: Game console programming? Pin
KarstenK26-Mar-09 22:59
mveKarstenK26-Mar-09 22:59 
QuestionCSocket Sending Object Pin
shakumar_2226-Mar-09 21:34
shakumar_2226-Mar-09 21:34 
AnswerRe: CSocket Sending Object Pin
CPallini26-Mar-09 21:43
mveCPallini26-Mar-09 21:43 
GeneralRe: CSocket Sending Object Pin
shakumar_2226-Mar-09 21:55
shakumar_2226-Mar-09 21:55 
QuestionRe: CSocket Sending Object Pin
CPallini26-Mar-09 21:59
mveCPallini26-Mar-09 21:59 
AnswerRe: CSocket Sending Object Pin
shakumar_2226-Mar-09 23:31
shakumar_2226-Mar-09 23:31 
GeneralRe: CSocket Sending Object Pin
CPallini26-Mar-09 23:59
mveCPallini26-Mar-09 23:59 
AnswerRe: CSocket Sending Object Pin
SandipG 26-Mar-09 21:48
SandipG 26-Mar-09 21:48 
QuestionHow to use GetForegroundWindow in service mode application in Vista operating system. Pin
User 268325826-Mar-09 21:19
User 268325826-Mar-09 21:19 
AnswerRe: How to use GetForegroundWindow in service mode application in Vista operating system. Pin
Stuart Dootson27-Mar-09 0:56
professionalStuart Dootson27-Mar-09 0:56 
QuestionAssign Hotkey to Explorerbar? Pin
ritz123426-Mar-09 21:14
ritz123426-Mar-09 21:14 
AnswerRe: Assign Hotkey to Explorerbar? Pin
Sophiya Chen26-Mar-09 22:17
Sophiya Chen26-Mar-09 22:17 
QuestionCListBox Pin
Davitor26-Mar-09 19:59
Davitor26-Mar-09 19:59 
AnswerRe: CListBox Pin
Cedric Moonen26-Mar-09 21:11
Cedric Moonen26-Mar-09 21:11 
GeneralRe: CListBox Pin
Davitor26-Mar-09 21:41
Davitor26-Mar-09 21:41 
Ok here i am try to do.i don't know it's a right or not.Code is here
UINT WorkerThreadProc( LPVOID Param );
UINT WorkerThreadProc(LPVOID Param)
{
		
	CStdioFile file;
	CString readstring;


if(file.Open(log1,  CFile::modeRead | CFile::modeNoTruncate))
{
		
CString readstring
			while(file.end)
			{
				int i=0;
				
				
				
				file47.ReadStringreadstring.Trim());
				
				if(readstring.IsEmpty())
				{
					
				break;
				}
				else
				{
					for(;i<1000;)
					{
					m_listba.InsertString(i,readstring);
					break;
					}
					i++;
						
				}
			
			}	
	
	
	file.Close();	
}


return TRUE;
	

}

void CABC::OnBnClickedButton3()
{
	
	AfxBeginThread(WorkerThreadProc,NULL,THREAD_PRIORITY_NORMAL,0,0,NULL);
				WaitForSingleObject(WorkerThreadProc, INFINITE);
	
	
}


It's working but when i click on OKButton then it's show Assertion Failed Afxwil2.inl Line 731.
Plz help me

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.