Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why ain't this in the docs? Pin
Waldermort28-Aug-07 17:45
Waldermort28-Aug-07 17:45 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 18:40
Naveen28-Aug-07 18:40 
GeneralRe: Why ain't this in the docs? Pin
Waldermort29-Aug-07 2:46
Waldermort29-Aug-07 2:46 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 19:27
Naveen28-Aug-07 19:27 
GeneralRe: Why ain't this in the docs? Pin
Waldermort29-Aug-07 5:05
Waldermort29-Aug-07 5:05 
GeneralRe: Why ain't this in the docs? Pin
Waldermort28-Aug-07 16:08
Waldermort28-Aug-07 16:08 
GeneralRe: Why ain't this in the docs? Pin
Naveen28-Aug-07 16:46
Naveen28-Aug-07 16:46 
QuestionMFC Win32 Dialog application not being updated under Win-XP OS. Pin
Ralph_L28-Aug-07 12:24
Ralph_L28-Aug-07 12:24 
My application is a MFC Win32 Dialog developed in VS6.0.
The dialog is used mainly for user input to parameters for a lengthy process called from a function within the dialog. I am using the windows UpdateWindow() method and Invalidate() from within the function to update the dialog indicating the number of records that have been processed and saved to a file. This seems to work correctly when ran on a Windows 2000 PC. but when I run it on a Window-XP PC the dialog is blanked with only the frame remaining whenever the application's focus is lost, by clicking on a desktop icon or launching an other application. Is there a solution to this problem? Could some sample code be provided to do this task?
Thank you.

Sample of my code follows:
<br />
				// Test source positions are within target area.<br />
	while(!feof(In_File) )// No Range Prefix -------------------------<br />
	{<br />
		if(fgets(Sbuf,3000,In_File) != NULL)<br />
			{<br />
			rin++;<br />
			DRec Srec(Sbuf, ',' , ',');<br />
			Pn = Srec.Extract(m_uFieldNorth);<br />
			Pe = Srec.Extract(m_uFieldEast);<br />
			classNumber = (int)Srec.Extract(m_uClassField);<br />
<br />
			Rn = Tn-Pn;  Re = Te-Pe;<br />
			<br />
			RnRe = (Rn*Rn)+(Re*Re);<br />
<br />
			if( ( RnRe ) <= Trr )	// Record is within radial distance from target.<br />
				{<br />
				fprintf(Out_File,"%s", Sbuf);	// Print out record within radial distance.<br />
				classCount[classNumber] += 1;	// Counter for class types<br />
				}<br />
			}<br />
<br />
	if((rin % 5000) == 0)	// Display only every 5000th record.<br />
		{<br />
		SetDlgItemInt(IDC_SDataRecords,rin);<br />
		 <br />
		UpdateWindow(); // Update window when over-drawn by other application.<br />
		//This is not working in Win-XP, Ok in Win2000!!!<br />
		}<br />
	}<br />
<br />
}	// End prefix not added ----------------------------<br />
<br />



Ralph_L

AnswerRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
Mark Salsbery28-Aug-07 13:04
Mark Salsbery28-Aug-07 13:04 
QuestionRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
David Crow29-Aug-07 3:23
David Crow29-Aug-07 3:23 
AnswerRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
Mark Salsbery29-Aug-07 6:54
Mark Salsbery29-Aug-07 6:54 
GeneralRe: MFC Win32 Dialog application not being updated under Win-XP OS. Pin
David Crow29-Aug-07 7:09
David Crow29-Aug-07 7:09 
QuestionUsing the debugger Pin
Waldermort28-Aug-07 10:36
Waldermort28-Aug-07 10:36 
AnswerRe: Using the debugger Pin
Chris Losinger28-Aug-07 10:58
professionalChris Losinger28-Aug-07 10:58 
GeneralRe: Using the debugger Pin
Waldermort28-Aug-07 11:11
Waldermort28-Aug-07 11:11 
GeneralRe: Using the debugger Pin
Chris Losinger28-Aug-07 11:13
professionalChris Losinger28-Aug-07 11:13 
GeneralRe: Using the debugger Pin
Waldermort28-Aug-07 11:18
Waldermort28-Aug-07 11:18 
GeneralRe: Using the debugger Pin
Chris Losinger28-Aug-07 11:25
professionalChris Losinger28-Aug-07 11:25 
GeneralRe: Using the debugger Pin
Waldermort28-Aug-07 11:27
Waldermort28-Aug-07 11:27 
GeneralRe: Using the debugger Pin
ThatsAlok29-Aug-07 0:32
ThatsAlok29-Aug-07 0:32 
QuestionPassing a collection using the Standard Template Library Pin
Leslie Sanford28-Aug-07 10:33
Leslie Sanford28-Aug-07 10:33 
AnswerRe: Passing a collection using the Standard Template Library Pin
Chris Losinger28-Aug-07 10:59
professionalChris Losinger28-Aug-07 10:59 
GeneralRe: Passing a collection using the Standard Template Library Pin
Leslie Sanford28-Aug-07 11:03
Leslie Sanford28-Aug-07 11:03 
GeneralRe: Passing a collection using the Standard Template Library Pin
Chris Losinger28-Aug-07 11:11
professionalChris Losinger28-Aug-07 11:11 
GeneralRe: Passing a collection using the Standard Template Library Pin
Leslie Sanford28-Aug-07 12:06
Leslie Sanford28-Aug-07 12:06 

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.