Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalforget type something.. Pin
mrAndy23-Jan-03 20:18
mrAndy23-Jan-03 20:18 
GeneralHop counting Pin
Nilesh K.23-Jan-03 18:48
Nilesh K.23-Jan-03 18:48 
GeneralRe: Hop counting Pin
jmkhael23-Jan-03 23:49
jmkhael23-Jan-03 23:49 
GeneralGetting Recent Document History Pin
Effiniti23-Jan-03 17:22
Effiniti23-Jan-03 17:22 
GeneralRe: Getting Recent Document History Pin
jmkhael23-Jan-03 23:54
jmkhael23-Jan-03 23:54 
GeneralRe: Getting Recent Document History Pin
Effiniti27-Jan-03 3:02
Effiniti27-Jan-03 3:02 
GeneralFonts in Chinese Windows Pin
Joe Woodbury23-Jan-03 17:18
professionalJoe Woodbury23-Jan-03 17:18 
GeneralPesty bug - concerns loop initialization Pin
73Zeppelin23-Jan-03 17:13
73Zeppelin23-Jan-03 17:13 
Have a gander at the following lines of code:

ofstream intrx;
ofstream intry;

intrx.open("intrx.dat", ios::out);
intry.open("intry.dat", ios::out);

unsigned int l = 0;
for (l = 0; l < m_nNumLines; l++);
{
for (unsigned int k = 0; k < m_nNumVerticies; k++)
{
intrx << setw(12) << m_ppdIntersectionX[l][k];
intry << setw(12) << m_ppdIntersectionY[l][k];
}
intrx << endl;
intry << endl;
}

intrx.close();
intry.close();

Looks innocent enough, yes? It seems there is a *weird* bug occuring here, specifically with the initialization of the loop index, 'l'.
When I trace through the code, I notice that 'l' gets initialized to '37' despite the fact that it is explicitly initialized as '0'.Confused | :confused:
If I have a look at the following:
&l (gives 37)
&l - 1 (gives 0)
It seems that the value of 'l' is being misplacedUnsure | :~

Any help would be appreciated, I can't seem to figure this one out. The project compiles absolutely clean as well...WTF | :WTF:
GeneralRe: Pesty bug - concerns loop initialization Pin
73Zeppelin23-Jan-03 17:20
73Zeppelin23-Jan-03 17:20 
GeneralRe: Pesty bug - concerns loop initialization Pin
Michael Dunn23-Jan-03 19:44
sitebuilderMichael Dunn23-Jan-03 19:44 
GeneralRe: odd problem :the CRichEditView lead to unuse of Paste operation Pin
Mike Nordell23-Jan-03 17:01
Mike Nordell23-Jan-03 17:01 
GeneralRe: odd problem :the CRichEditView lead to unuse of Paste operation Pin
yuanLoveVC23-Jan-03 17:24
yuanLoveVC23-Jan-03 17:24 
GeneralSerial Port Interfacing Pin
lead2gold23-Jan-03 14:52
lead2gold23-Jan-03 14:52 
GeneralRe: Serial Port Interfacing Pin
suka23-Jan-03 21:23
suka23-Jan-03 21:23 
GeneralRe: Serial Port Interfacing Pin
lead2gold26-Jan-03 11:02
lead2gold26-Jan-03 11:02 
GeneralRe: Serial Port Interfacing Pin
suka27-Jan-03 9:12
suka27-Jan-03 9:12 
GeneralRe: Serial Port Interfacing Pin
lead2gold28-Jan-03 10:10
lead2gold28-Jan-03 10:10 
GeneralRe: Serial Port Interfacing Pin
LittleYellowBird23-Jan-03 21:54
LittleYellowBird23-Jan-03 21:54 
GeneralRe: Serial Port Interfacing Pin
lead2gold26-Jan-03 10:58
lead2gold26-Jan-03 10:58 
GeneralRe: Serial Port Interfacing Pin
LittleYellowBird27-Jan-03 0:06
LittleYellowBird27-Jan-03 0:06 
GeneralRe: Serial Port Interfacing Pin
lead2gold28-Jan-03 10:14
lead2gold28-Jan-03 10:14 
GeneralRe: Serial Port Interfacing Pin
LittleYellowBird29-Jan-03 2:21
LittleYellowBird29-Jan-03 2:21 
GeneralDisplaying text from a text file in a dialogue box Pin
Kayembi23-Jan-03 14:29
Kayembi23-Jan-03 14:29 
GeneralRe: Displaying text from a text file in a dialogue box Pin
Mike Nordell23-Jan-03 17:03
Mike Nordell23-Jan-03 17:03 
QuestionA multimedia queation: How to convert YUV to RGB in video stream? Pin
Danaus23-Jan-03 14:28
Danaus23-Jan-03 14:28 

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.