Click here to Skip to main content
15,898,851 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory leak searcher? Pin
Bart Robeyns18-Sep-02 6:27
Bart Robeyns18-Sep-02 6:27 
GeneralRe: Memory leak searcher? Pin
RChin18-Sep-02 6:46
RChin18-Sep-02 6:46 
GeneralRe: Memory leak searcher? Pin
Bart Robeyns18-Sep-02 12:01
Bart Robeyns18-Sep-02 12:01 
AnswerRe: Memory leak searcher? Pin
Stephane Rodriguez.18-Sep-02 2:36
Stephane Rodriguez.18-Sep-02 2:36 
AnswerRe: Memory leak searcher? Pin
dazinith18-Sep-02 5:12
dazinith18-Sep-02 5:12 
GeneralSerialization problem Pin
simbakid18-Sep-02 0:45
simbakid18-Sep-02 0:45 
GeneralRe: Serialization problem Pin
Jawache18-Sep-02 1:24
Jawache18-Sep-02 1:24 
GeneralRe: Serialization problem Pin
simbakid18-Sep-02 3:04
simbakid18-Sep-02 3:04 
Found the relevant section on MSDN, having some problems implementing
the solution though. I added the code...
template <> void AFXAPI SerializeElements <CXrefEntry> (CArchive &ar, CXrefEntry *pEntries, int nCount) {<br />
	for (int i = 0; i < nCount; i++, pEntries++) {<br />
		pEntries->Serialize(ar);<br />
	}<br />
}


... to my header file for the class stored in the map, but get a lot of errors
when I compile, saying that I'm trying to redefine SerializeElements.

I've also tried the following variation...
<br />
template <class CXrefEntry> void AFXAPI SerializeElements (CArchive &ar, CXrefEntry *pEntries, int nCount) {<br />
	for (int i = 0; i < nCount; i++, pEntries++) {<br />
		pEntries->Serialize(ar);<br />
	}<br />
}


... which also generates errors (C2995, template function redefinition)
Generalcreate shared folder Pin
Anonymous18-Sep-02 0:37
Anonymous18-Sep-02 0:37 
GeneralRe: create shared folder Pin
Jon Hulatt18-Sep-02 1:38
Jon Hulatt18-Sep-02 1:38 
GeneralUsing the NetLocalGroupGetMembers method Pin
abhinarulkar18-Sep-02 0:36
abhinarulkar18-Sep-02 0:36 
QuestionHow to grey or disable a toolbar button? Pin
chen18-Sep-02 0:25
chen18-Sep-02 0:25 
AnswerRe: How to grey or disable a toolbar button? Pin
Jawache18-Sep-02 1:27
Jawache18-Sep-02 1:27 
Generalportability of VC++ .NET Pin
Bilal18-Sep-02 0:14
Bilal18-Sep-02 0:14 
GeneralRe: portability of VC++ .NET Pin
Michael P Butler18-Sep-02 0:44
Michael P Butler18-Sep-02 0:44 
GeneralRe: portability of VC++ .NET Pin
Stephane Rodriguez.18-Sep-02 2:32
Stephane Rodriguez.18-Sep-02 2:32 
GeneralRe: portability of VC++ .NET Pin
Bilal18-Sep-02 4:36
Bilal18-Sep-02 4:36 
GeneralRe: portability of VC++ .NET Pin
Stephane Rodriguez.18-Sep-02 4:55
Stephane Rodriguez.18-Sep-02 4:55 
Generalweird template compile problem Pin
peterchen17-Sep-02 23:46
peterchen17-Sep-02 23:46 
GeneralRe: weird template compile problem Pin
Anonymous18-Sep-02 0:46
Anonymous18-Sep-02 0:46 
GeneralRe: weird template compile problem Pin
peterchen18-Sep-02 2:43
peterchen18-Sep-02 2:43 
GeneralPocketPC with only 256 colors... Pin
Daniel Strigl17-Sep-02 23:38
Daniel Strigl17-Sep-02 23:38 
GeneralRe: PocketPC with only 256 colors... Pin
Zizilamoroso18-Sep-02 3:19
Zizilamoroso18-Sep-02 3:19 
GeneralRe: PocketPC with only 256 colors... Pin
Daniel Strigl22-Sep-02 20:15
Daniel Strigl22-Sep-02 20:15 
GeneralMicrosoft Tree Control Memory Management Pin
umakanth17-Sep-02 23:36
umakanth17-Sep-02 23:36 

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.