Click here to Skip to main content
14,690,616 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to mount an ISO file with disc type - CD/DVD Pin
Member 1001484126-May-20 6:04
MemberMember 1001484126-May-20 6:04 
AnswerRe: How to mount an ISO file with disc type - CD/DVD Pin
jeron126-May-20 6:21
Memberjeron126-May-20 6:21 
QuestionProblem with pointers memory allocation on the same memory area Pin
Member 959508024-May-20 21:37
MemberMember 959508024-May-20 21:37 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Stephane Capo24-May-20 22:19
MemberStephane Capo24-May-20 22:19 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan24-May-20 22:29
mveRichard MacCutchan24-May-20 22:29 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan24-May-20 22:25
mveRichard MacCutchan24-May-20 22:25 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Member 959508024-May-20 22:52
MemberMember 959508024-May-20 22:52 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Member 959508024-May-20 23:40
MemberMember 959508024-May-20 23:40 
Well, in fact, I've two cases :

if I serialize with the following way, I've got some CLibStyle::m_pFont on the same memory during the serialization :
CLibStyle Style;
for (int nNumRow = 0; nNumRow ++; nNumRow <nNbRow)
	for (int nNumCol = 0; nNumCol ++; nNumCol <nNbCol)
	{
		Style.Free();
		m_pGrid->GetStyleRowCol( nRow, nCol, Style);
		Style.Serialize(ar);
	}

if I serialize with this second way, I've got problem during deserialization in the ar >> m_pFont line : CArchive::ReadObject can't find the corresponding runtime class ...
CLibStyle *pStyle;
for (int nNumRow = 0; nNumRow ++; nNumRow <nNbRow)
	for (int nNumCol = 0; nNumCol ++; nNumCol <nNbCol)
	{
		pStyle = new CLibStyle();
		m_pGrid->GetStyleRowCol( nRow, nCol, *pStyle);
		pStyle->Serialize(ar);
	}

GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan24-May-20 23:54
mveRichard MacCutchan24-May-20 23:54 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Member 959508025-May-20 0:03
MemberMember 959508025-May-20 0:03 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan25-May-20 0:19
mveRichard MacCutchan25-May-20 0:19 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Member 95950801-Jun-20 21:36
MemberMember 95950801-Jun-20 21:36 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
phil.o25-May-20 1:21
mvephil.o25-May-20 1:21 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan25-May-20 1:31
mveRichard MacCutchan25-May-20 1:31 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Member 959508025-May-20 2:25
MemberMember 959508025-May-20 2:25 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
phil.o25-May-20 2:36
mvephil.o25-May-20 2:36 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan25-May-20 2:46
mveRichard MacCutchan25-May-20 2:46 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Member 95950801-Jun-20 21:42
MemberMember 95950801-Jun-20 21:42 
QuestionPrinting With Crystal Report Pin
a_alise21-May-20 12:09
Membera_alise21-May-20 12:09 
AnswerRe: Printing With Crystal Report Pin
_Flaviu22-May-20 1:12
Member_Flaviu22-May-20 1:12 
QuestionDynamic Created CEdit using CreateEx Pin
Beginner_mfc20-May-20 4:48
MemberBeginner_mfc20-May-20 4:48 
AnswerRe: Dynamic Created CEdit using CreateEx Pin
Richard MacCutchan20-May-20 6:06
mveRichard MacCutchan20-May-20 6:06 
AnswerRe: Dynamic Created CEdit using CreateEx Pin
Victor Nijegorodov20-May-20 7:42
MemberVictor Nijegorodov20-May-20 7:42 
QuestionC++ Pin
Member 1461181419-May-20 6:46
MemberMember 1461181419-May-20 6:46 
AnswerRe: C++ Pin
Greg Utas19-May-20 7:08
professionalGreg Utas19-May-20 7:08 

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.