Can you just give the sample code for the same.Because i tried ,but i am doing a small mistake somewhere.How will i store the string in a buffer so that it can be accessible from another class and use for updating the text.
User 11403697
Posts
-
How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error -
How to update the string value from one class to another class of Property page in mfc.I am getting an runtime errorI want to update the text(string) on u/i page.I am sending the message on button click and want to receive the same string on Edit controlBox.
-
How to update the string value from one class to another class of Property page in mfc.I am getting an runtime errorCan i use Handler or callback function,if yes.How??? Guide for the same.Ty.
-
How to update the string value from one class to another class of Property page in mfc.I am getting an runtime errorCan i use callback function over der?How??????please guide me for the same.Thankyou
-
How to update the string value from one class to another class of Property page in mfc.I am getting an runtime errorm_cData is declared as pointer
-
How to update the string value from one class to another class of Property page in mfc.I am getting an runtime errorBelow is my code tried class CVersion void CVersion::ReadValue(BYTE *Buffer, int n_Length, int n_Source) { EnterCriticalSection(&m_sReadCritical); CString tempBuffer((BYTE*)Buffer); m_svalue = tempBuffer; m_cData->Data(this); LeaveCriticalSection(&m_sReadCritical); } class CClassVersion void CClassVersion::Data(CVersion *pcVers) { CString m_Value1 = pcVers->m_sValue; this->SetDlgItemTextA(IDC_EDIT_VAL,m_Value1); } //Declared in CVersion header file protected: CClassVersion* m_cData; An Runtime error occurs"Unhandled exception at 0x782ac7da in .exe:0xC0000005:Access violation reading location 0x00000020." after SetDlgItemText stmt. Please guide me for the same.