Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
GeneralRe: CListBox Pin
CPallini26-Mar-09 21:46
mveCPallini26-Mar-09 21:46 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 21:48
Cedric Moonen26-Mar-09 21:48 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 22:01
Cedric Moonen26-Mar-09 22:01 
GeneralRe: CListBox Pin
Davitor26-Mar-09 22:19
Davitor26-Mar-09 22:19 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 22:28
Cedric Moonen26-Mar-09 22:28 
GeneralRe: CListBox Pin
Davitor26-Mar-09 23:03
Davitor26-Mar-09 23:03 
GeneralRe: CListBox Pin
Cedric Moonen26-Mar-09 23:13
Cedric Moonen26-Mar-09 23:13 
GeneralRe: CListBox [modified] Pin
Davitor26-Mar-09 23:19
Davitor26-Mar-09 23:19 
GeneralRe: CListBox Pin
CPallini26-Mar-09 23:56
mveCPallini26-Mar-09 23:56 
GeneralRe: CListBox Pin
Cedric Moonen27-Mar-09 0:23
Cedric Moonen27-Mar-09 0:23 
GeneralRe: CListBox Pin
Davitor27-Mar-09 22:06
Davitor27-Mar-09 22:06 
GeneralRe: CListBox Pin
Christian Graus27-Mar-09 0:01
protectorChristian Graus27-Mar-09 0:01 
GeneralRe: CListBox Pin
CPallini27-Mar-09 0:38
mveCPallini27-Mar-09 0:38 
QuestionRe: CListBox Pin
CPallini26-Mar-09 22:35
mveCPallini26-Mar-09 22:35 
GeneralRe: CListBox Pin
Sophiya Chen26-Mar-09 22:26
Sophiya Chen26-Mar-09 22:26 
QuestionUrgent: How to ignore any other input except keyboard in an application [modified] Pin
Rakesh Pahwa26-Mar-09 19:32
Rakesh Pahwa26-Mar-09 19:32 
AnswerRe: Urgent: How to ignore any other input except keyboard in an application Pin
David Crow27-Mar-09 3:20
David Crow27-Mar-09 3: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.