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

C / C++ / MFC

 
AnswerRe: my c++ application cannot allocate more than 400MB with new[] Pin
ybenaabud9-Sep-08 11:03
ybenaabud9-Sep-08 11:03 
GeneralRe: my c++ application cannot allocate more than 400MB with new[] Pin
David Crow9-Sep-08 17:58
David Crow9-Sep-08 17:58 
NewsCHttpConnection OpenRequest SendRequest [modified] Pin
dehseth6-Sep-08 4:43
dehseth6-Sep-08 4:43 
QuestionHow can repaint a view? Pin
Le@rner6-Sep-08 1:56
Le@rner6-Sep-08 1:56 
AnswerRe: How can repaint a view? Pin
bob169726-Sep-08 5:46
bob169726-Sep-08 5:46 
AnswerRe: How can repaint a view? Pin
bob169726-Sep-08 5:58
bob169726-Sep-08 5:58 
AnswerRe: How can repaint a view? Pin
Cedric Moonen6-Sep-08 7:40
Cedric Moonen6-Sep-08 7:40 
QuestionUpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 0:31
Dhiraj kumar Saini6-Sep-08 0:31 
When I am calling a thread from main dialog to get data from server and show it in the child dialog
i.e setting the values of the controls with the values from the server It is giving erroe when i update. Please tell what is the error My code is as follows:


void CVisitorDtlsDlg::FillDetails(VisitorDetails stVisitorDetails)
{
m_stVisitorDetails = stVisitorDetails;

m_strBrowser = stVisitorDetails.strBrowser;

m_strCity = stVisitorDetails.strCity;
m_strCountry = stVisitorDetails.strCountry;
m_strJava = stVisitorDetails.strJava;
m_strLanguage = stVisitorDetails.strLanguage;
m_strOS = stVisitorDetails.strOS;
m_strRefere = stVisitorDetails.strRefere;
m_strRegion = stVisitorDetails.strRegion;
m_strScreen = stVisitorDetails.strScreenColors;
m_strTime = stVisitorDetails.strUserTime;
m_strScreen = stVisitorDetails.strScreenColors;
m_strURL = stVisitorDetails.strURL;
m_strIPHost = stVisitorDetails.strIPHost;
m_strSysBrowser = stVisitorDetails.strSysBrowser;
m_strVisitorName= stVisitorDetails.strVisitorName;
m_strVisitorEmail= stVisitorDetails.strVisitorEmail; m_strCustomInformation=stVisitorDetails.strCustomInformation;
m_strCountryLanguage= stVisitorDetails.strCountryLanguage;
m_strCurrency= stVisitorDetails.strCurrency;
m_strPopulation= stVisitorDetails.strPopulation;

this->UpdateData(false);

m_staticURL.SetLinkText(m_strURL);
m_staticVisitorEmail.SetLinkMail(m_strVisitorEmail);
m_staticRefere.SetLinkMail(m_strRefere);
this->UpdateData(false);

CRect rect1;
m_staticURL.GetWindowRect(&rect1);
ScreenToClient(&rect1);
InvalidateRect(&rect1);

CRect rect2;
m_staticRefere.GetWindowRect(&rect2);
ScreenToClient(&rect2);
InvalidateRect(&rect2);


CRect rect3;
m_staticVisitorEmail.GetWindowRect(&rect3);
ScreenToClient(&rect3);
InvalidateRect(&rect3);
}
I am calling the above function in a thread from CMainDlg which is the Parent Dialog

Thanks in Advance
AnswerRe: UpdateData giving run time error Pin
Gary R. Wheeler6-Sep-08 1:24
Gary R. Wheeler6-Sep-08 1:24 
GeneralRe: UpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 1:33
Dhiraj kumar Saini6-Sep-08 1:33 
GeneralRe: UpdateData giving run time error Pin
Gary R. Wheeler6-Sep-08 2:11
Gary R. Wheeler6-Sep-08 2:11 
GeneralRe: UpdateData giving run time error Pin
Dhiraj kumar Saini6-Sep-08 3:00
Dhiraj kumar Saini6-Sep-08 3:00 
GeneralRe: UpdateData giving run time error Pin
David Crow8-Sep-08 4:16
David Crow8-Sep-08 4:16 
AnswerRe: UpdateData giving run time error Pin
Cedric Moonen6-Sep-08 1:27
Cedric Moonen6-Sep-08 1:27 
QuestionFailed to Create Empty Document [modified] Pin
Sachindra Kumar Shukla5-Sep-08 23:24
Sachindra Kumar Shukla5-Sep-08 23:24 
QuestionCopying a file Pin
programming.student5-Sep-08 21:47
programming.student5-Sep-08 21:47 
AnswerRe: Copying a file Pin
Cedric Moonen5-Sep-08 22:12
Cedric Moonen5-Sep-08 22:12 
AnswerRe: Copying a file Pin
Perspx5-Sep-08 22:45
Perspx5-Sep-08 22:45 
QuestionThreads Problem Pin
Dhiraj kumar Saini5-Sep-08 19:23
Dhiraj kumar Saini5-Sep-08 19:23 
AnswerRe: Threads Problem Pin
Cedric Moonen5-Sep-08 22:09
Cedric Moonen5-Sep-08 22:09 
QuestionCPrintDialog::GetPrinterDC question Pin
followait5-Sep-08 17:28
followait5-Sep-08 17:28 
AnswerRe: CPrintDialog::GetPrinterDC question Pin
Rane5-Sep-08 19:01
Rane5-Sep-08 19:01 
QuestionCalling functions in an executable or accessing its global variables from a DLL Pin
Ben Burnett5-Sep-08 12:09
Ben Burnett5-Sep-08 12:09 
AnswerRe: Calling functions in an executable or accessing its global variables from a DLL Pin
Garth J Lancaster5-Sep-08 14:23
professionalGarth J Lancaster5-Sep-08 14:23 
GeneralRe: Calling functions in an executable or accessing its global variables from a DLL Pin
Ben Burnett10-Sep-08 5:49
Ben Burnett10-Sep-08 5:49 

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.