Click here to Skip to main content
15,890,186 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: void main ... crashing [modified] Pin
Chris Losinger31-Aug-06 7:43
professionalChris Losinger31-Aug-06 7:43 
GeneralRe: void main ... crashing Pin
jon-8031-Aug-06 7:51
professionaljon-8031-Aug-06 7:51 
GeneralRe: void main ... crashing Pin
Chris Losinger31-Aug-06 7:59
professionalChris Losinger31-Aug-06 7:59 
GeneralRe: void main ... crashing Pin
Zac Howland31-Aug-06 8:10
Zac Howland31-Aug-06 8:10 
GeneralRe: void main ... crashing Pin
Chris Losinger31-Aug-06 8:17
professionalChris Losinger31-Aug-06 8:17 
GeneralRe: void main ... crashing Pin
Zac Howland31-Aug-06 8:36
Zac Howland31-Aug-06 8:36 
QuestionFrameless SDI Application Pin
kiranin31-Aug-06 7:05
kiranin31-Aug-06 7:05 
QuestionMSFLEXIGRID UPDATING Pin
Desmond Mardle31-Aug-06 6:33
Desmond Mardle31-Aug-06 6:33 
Hello
I have written an application which is using the msflexigrid. The problem I am seeing is with a fast PC. Intel 3GHz P4 using Hyperthreading.

The problem is the cells do not always update. Below is a sample of code which updates a cell depending of the outcome of the function.

if(!(CTESTINTERFACE::SetupTxVcoTop()))
{
if(!(CTESTINTERFACE::SetupTxVcoTop()))
{
m_vco_parameter_grid.SetRow(2);
m_vco_parameter_grid.SetCol(3);
m_vco_parameter_grid.SetCellForeColor(RGB(255,0,0));
m_vco_parameter_grid.SetText("Failed");
UpdateWindow();

if(OnTestFailed("TxVcoTop") == FALSE)
return;
}
else
{
m_vco_parameter_grid.SetRow(2);
m_vco_parameter_grid.SetCol(3);
m_vco_parameter_grid.SetCellForeColor(RGB(0,255,0));
m_vco_parameter_grid.SetText("Passed");
UpdateWindow();

CMEASUREMENT::strPASS_FAIL.ialign_pass_count++;
}
}
else
{
m_vco_parameter_grid.SetRow(2);
m_vco_parameter_grid.SetCol(3);
m_vco_parameter_grid.SetCellForeColor(RGB(0,255,0));
m_vco_parameter_grid.SetText("Passed");
UpdateWindow();

CMEASUREMENT::strPASS_FAIL.ialign_pass_count++;
}

I have tried replacing UpdateWindow() with Refresh(),RedrawWindow(),Invalidate(), and calls directly to OnPaint();

The problem is randam. Some times it runs flowlessly.

Any idears would be appreciated.

Regards Desmond Mardle


QuestionMFC Program crashes when using release configuration (Visual C++ 6.0) Pin
darbien siamak31-Aug-06 5:58
darbien siamak31-Aug-06 5:58 
AnswerRe: MFC Program crashes when using release configuration (Visual C++ 6.0) Pin
toxcct31-Aug-06 6:19
toxcct31-Aug-06 6:19 
QuestionEnding a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 5:10
manustone31-Aug-06 5:10 
AnswerRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 5:22
Zac Howland31-Aug-06 5:22 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 5:47
manustone31-Aug-06 5:47 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 6:24
Zac Howland31-Aug-06 6:24 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 6:14
manustone31-Aug-06 6:14 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 6:27
Zac Howland31-Aug-06 6:27 
AnswerRe: Ending a Thead and retrieve the result in MFC Pin
Jun Du31-Aug-06 5:32
Jun Du31-Aug-06 5:32 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 5:50
manustone31-Aug-06 5:50 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Zac Howland31-Aug-06 6:29
Zac Howland31-Aug-06 6:29 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 6:41
manustone31-Aug-06 6:41 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
manustone31-Aug-06 6:10
manustone31-Aug-06 6:10 
GeneralRe: Ending a Thead and retrieve the result in MFC Pin
Jun Du31-Aug-06 6:56
Jun Du31-Aug-06 6:56 
QuestionOne More IV : Optimization Pin
Nawal K Gupta31-Aug-06 4:39
Nawal K Gupta31-Aug-06 4:39 
AnswerRe: One More IV : Optimization Pin
toxcct31-Aug-06 4:46
toxcct31-Aug-06 4:46 
AnswerRe: One More IV : Optimization Pin
Zac Howland31-Aug-06 4:54
Zac Howland31-Aug-06 4:54 

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.