Click here to Skip to main content
16,011,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General_beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Peter Weyzen19-Dec-02 9:15
Peter Weyzen19-Dec-02 9:15 
GeneralRe: _beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Tim Smith19-Dec-02 9:24
Tim Smith19-Dec-02 9:24 
GeneralRe: _beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Peter Weyzen19-Dec-02 9:32
Peter Weyzen19-Dec-02 9:32 
GeneralRe: _beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Peter Weyzen19-Dec-02 9:45
Peter Weyzen19-Dec-02 9:45 
GeneralRe: _beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Joe Woodbury19-Dec-02 10:47
professionalJoe Woodbury19-Dec-02 10:47 
GeneralRe: _beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Tim Smith19-Dec-02 11:28
Tim Smith19-Dec-02 11:28 
GeneralRe: _beginthreadex / GetCurrentThreadId / GetCurrentThread Pin
Tim Smith19-Dec-02 11:27
Tim Smith19-Dec-02 11:27 
GeneralCompiler Warning (level 4) question.. Pin
RobJones19-Dec-02 8:41
RobJones19-Dec-02 8:41 
Hello,
My app is almost complete.. I went to compile it at level 4 and I get a warning "warning C4706: assignment within conditional expression" Here is the only code in my program that gives me any warnings at level 4.. How could I rewrite the following to get rid of the warning?? (I understand the warning but I am unsure of a way to rewrite the while statement...)

Any help would be greatly appreciated!

CFile fileRead;
if(fileRead.Open(m_strCurrentDir+"clients.ini",CFile::modeRead))
{
	char cBuf[1024];
	UINT uBytesRead = 0;
	while(uBytesRead = fileRead.Read(cBuf, sizeof(cBuf)-1)) <- HERE
	{
		cBuf[uBytesRead] = NULL;
		strBuff += CString(cBuf);
	}
	fileRead.Close();
//////// More code below...
}


Thanks!!
Rob
GeneralRe: Compiler Warning (level 4) question.. Pin
Tim Smith19-Dec-02 8:59
Tim Smith19-Dec-02 8:59 
GeneralRe: Compiler Warning (level 4) question.. Pin
RobJones19-Dec-02 9:10
RobJones19-Dec-02 9:10 
QuestionHow to change the background color of the CTabCtrl? Pin
Daniel Strigl19-Dec-02 7:32
Daniel Strigl19-Dec-02 7:32 
AnswerRe: How to change the background color of the CTabCtrl? Pin
Daniel Strigl19-Dec-02 21:10
Daniel Strigl19-Dec-02 21:10 
General0 errors, 3 warnings..... Pin
joshfl19-Dec-02 6:18
joshfl19-Dec-02 6:18 
GeneralRe: 0 errors, 3 warnings..... Pin
Nish Nishant19-Dec-02 6:23
sitebuilderNish Nishant19-Dec-02 6:23 
GeneralRe: 0 errors, 3 warnings..... Pin
Joe Woodbury19-Dec-02 6:50
professionalJoe Woodbury19-Dec-02 6:50 
GeneralRe: 0 errors, 3 warnings..... Pin
Michael Dunn19-Dec-02 7:37
sitebuilderMichael Dunn19-Dec-02 7:37 
GeneralVirtualAlloc v/s new Pin
User 988519-Dec-02 5:28
User 988519-Dec-02 5:28 
GeneralRe: VirtualAlloc v/s new Pin
Joe Woodbury19-Dec-02 5:54
professionalJoe Woodbury19-Dec-02 5:54 
GeneralRe: VirtualAlloc v/s new Pin
User 988519-Dec-02 6:31
User 988519-Dec-02 6:31 
GeneralRe: VirtualAlloc v/s new Pin
Tim Smith19-Dec-02 6:37
Tim Smith19-Dec-02 6:37 
GeneralRe: VirtualAlloc v/s new Pin
Joe Woodbury19-Dec-02 6:44
professionalJoe Woodbury19-Dec-02 6:44 
GeneralRe: VirtualAlloc v/s new Pin
Tim Smith19-Dec-02 5:59
Tim Smith19-Dec-02 5:59 
GeneralRe: VirtualAlloc v/s new Pin
Alvaro Mendez19-Dec-02 6:18
Alvaro Mendez19-Dec-02 6:18 
QuestionHow to get CPU usage by PDH? Pin
Dudi Avramov19-Dec-02 5:15
Dudi Avramov19-Dec-02 5:15 
GeneralConvert string --> INT or FLOAT with ERROR checking! Pin
Daniel Strigl19-Dec-02 5:07
Daniel Strigl19-Dec-02 5:07 

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.