Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with TryEnterCriticalSection Pin
Naveen29-Sep-08 17:56
Naveen29-Sep-08 17:56 
AnswerRe: Problem with TryEnterCriticalSection Pin
SRKSHOME29-Sep-08 18:30
SRKSHOME29-Sep-08 18:30 
AnswerRe: Problem with TryEnterCriticalSection Pin
ThatsAlok29-Sep-08 22:48
ThatsAlok29-Sep-08 22:48 
AnswerRe: Problem with TryEnterCriticalSection Pin
sashoalm30-Sep-08 0:24
sashoalm30-Sep-08 0:24 
GeneralRe: Problem with TryEnterCriticalSection Pin
krishnan.s30-Sep-08 1:51
krishnan.s30-Sep-08 1:51 
GeneralRe: Problem with TryEnterCriticalSection Pin
sashoalm30-Sep-08 5:52
sashoalm30-Sep-08 5:52 
QuestionQuery reagrding boodt graph library... Pin
raesa29-Sep-08 17:04
raesa29-Sep-08 17:04 
QuestionRe-Posting as Question... Dialog - PropertyPage Problem Pin
Rangarajan Varadan29-Sep-08 4:52
Rangarajan Varadan29-Sep-08 4:52 
I have an application which has a Dialog and a Tab control, each tab is a PropertyPage.
I don't have a OnInit handler for my Propertypages.

The situation I ran into is because I had to create a menu in the main dialog.
I have a Edit control and CComboBox in my Property page PPOne.

In my file menu, I do File Open, through which I can open a file and read its contents, am able to populate memory,then I perform the step m_oPPOne.Create(IDD_PP_ONE)(this is from a class derived from Ctabctrl) I see the tab appear, now how can I make the the data for the controls on this PP appear in their fields ?.

Example: Normally when I am on the PP if I click a button, this below function works fine.

void CPPOne::OnBtnRefreshClicked
{   
UpdateData(TRUE);   
//populate Edit controls   
CString str;   
str.Format("%d",some_int1);   
cs_my_edit_control = str;   
UpdateData(FALSE);   
ccb_my_combo_box.SelectString(0,*(&my_predef_Str[0+some_int2]));
}

But if I call this above function from my main dialog, it fails on the UpdateData line(s) with a assertion failure in line 4184 of wincore.cpp saying doing UpdateData before DoModal.

How can I overcome this? any suggestion would help.

Best Regards
RV
AnswerRe: Re-Posting as Question... Dialog - PropertyPage Problem Pin
Iain Clarke, Warrior Programmer29-Sep-08 22:56
Iain Clarke, Warrior Programmer29-Sep-08 22:56 
GeneralRe: Re-Posting as Question... Dialog - PropertyPage Problem Pin
Rangarajan Varadan30-Sep-08 4:01
Rangarajan Varadan30-Sep-08 4:01 
GeneralRe: Re-Posting as Question... Dialog - PropertyPage Problem Pin
Iain Clarke, Warrior Programmer30-Sep-08 4:26
Iain Clarke, Warrior Programmer30-Sep-08 4:26 
QuestionRead leading space from an ini file Pin
Dan Neely29-Sep-08 3:33
Dan Neely29-Sep-08 3:33 
AnswerRe: Read leading space from an ini file Pin
toxcct29-Sep-08 3:44
toxcct29-Sep-08 3:44 
AnswerRe: Read leading space from an ini file Pin
Iain Clarke, Warrior Programmer29-Sep-08 22:58
Iain Clarke, Warrior Programmer29-Sep-08 22:58 
GeneralRe: Read leading space from an ini file Pin
Dan Neely30-Sep-08 10:15
Dan Neely30-Sep-08 10:15 
Questiondll problem Pin
ashishmax4729-Sep-08 2:53
ashishmax4729-Sep-08 2:53 
AnswerRe: dll problem Pin
CPallini29-Sep-08 3:06
mveCPallini29-Sep-08 3:06 
AnswerRe: dll problem Pin
KarstenK29-Sep-08 4:06
mveKarstenK29-Sep-08 4:06 
AnswerRe: dll problem Pin
Alan Balkany29-Sep-08 5:33
Alan Balkany29-Sep-08 5:33 
GeneralRe: dll problem Pin
CPallini29-Sep-08 5:37
mveCPallini29-Sep-08 5:37 
GeneralRe: dll problem Pin
Alan Balkany29-Sep-08 5:44
Alan Balkany29-Sep-08 5:44 
GeneralRe: dll problem Pin
CPallini29-Sep-08 5:56
mveCPallini29-Sep-08 5:56 
GeneralRe: dll problem Pin
Alan Balkany29-Sep-08 7:02
Alan Balkany29-Sep-08 7:02 
QuestionRe: dll problem Pin
CPallini29-Sep-08 7:15
mveCPallini29-Sep-08 7:15 
AnswerRe: dll problem Pin
Peter Weyzen29-Sep-08 18:20
Peter Weyzen29-Sep-08 18: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.