Click here to Skip to main content
15,920,576 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI could not understand loop testcondition understanding| rest program runs fine Pin
Member 1484924631-May-20 8:55
Member 1484924631-May-20 8:55 
AnswerRe: I could not understand loop testcondition understanding| rest program runs fine Pin
Greg Utas31-May-20 9:40
professionalGreg Utas31-May-20 9:40 
AnswerRe: I could not understand loop testcondition understanding| rest program runs fine Pin
Richard MacCutchan31-May-20 21:58
mveRichard MacCutchan31-May-20 21:58 
QuestionPassing an entry from an array as argument Pin
Calin Negru31-May-20 8:35
Calin Negru31-May-20 8:35 
AnswerRe: Passing an entry from an array as argument Pin
Greg Utas31-May-20 9:36
professionalGreg Utas31-May-20 9:36 
GeneralRe: Passing an entry from an array as argument Pin
Calin Negru31-May-20 9:58
Calin Negru31-May-20 9:58 
GeneralRe: Passing an entry from an array as argument Pin
Greg Utas31-May-20 10:25
professionalGreg Utas31-May-20 10:25 
GeneralRe: Passing an entry from an array as argument Pin
Calin Negru31-May-20 20:33
Calin Negru31-May-20 20:33 
QuestionReading a text file from a remote machine in LAN using c, c++, vc++ Pin
manoharbalu27-May-20 23:51
manoharbalu27-May-20 23:51 
GeneralRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
Richard MacCutchan28-May-20 0:24
mveRichard MacCutchan28-May-20 0:24 
AnswerRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
CPallini28-May-20 1:25
mveCPallini28-May-20 1:25 
SuggestionRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
David Crow28-May-20 2:47
David Crow28-May-20 2:47 
GeneralRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
CPallini28-May-20 10:08
mveCPallini28-May-20 10:08 
QuestionGet expanded macros from precompiler and insert as comments in source code? Pin
arnold_w27-May-20 20:14
arnold_w27-May-20 20:14 
AnswerRe: Get expanded macros from precompiler and insert as comments in source code? Pin
Richard MacCutchan27-May-20 22:44
mveRichard MacCutchan27-May-20 22:44 
GeneralRe: Get expanded macros from precompiler and insert as comments in source code? Pin
arnold_w27-May-20 23:23
arnold_w27-May-20 23:23 
GeneralRe: Get expanded macros from precompiler and insert as comments in source code? Pin
Richard MacCutchan27-May-20 23:34
mveRichard MacCutchan27-May-20 23:34 
QuestionHow to mount an ISO file with disc type - CD/DVD Pin
Member 1001484126-May-20 5:04
Member 1001484126-May-20 5:04 
AnswerRe: How to mount an ISO file with disc type - CD/DVD Pin
jeron126-May-20 5:21
jeron126-May-20 5:21 
QuestionProblem with pointers memory allocation on the same memory area Pin
Member 959508024-May-20 20:37
Member 959508024-May-20 20:37 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Stephane Capo24-May-20 21:19
professionalStephane Capo24-May-20 21:19 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan24-May-20 21:29
mveRichard MacCutchan24-May-20 21:29 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Richard MacCutchan24-May-20 21:25
mveRichard MacCutchan24-May-20 21:25 
GeneralRe: Problem with pointers memory allocation on the same memory area Pin
Member 959508024-May-20 21:52
Member 959508024-May-20 21:52 
AnswerRe: Problem with pointers memory allocation on the same memory area Pin
Member 959508024-May-20 22:40
Member 959508024-May-20 22: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 :
C++
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 ...
C++
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);
	}

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.