Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple inheritance in MFC Pin
Vaclav30-Aug-04 7:07
Vaclav30-Aug-04 7:07 
GeneralRe: Multiple inheritance in MFC Pin
PJ Arends30-Aug-04 17:58
professionalPJ Arends30-Aug-04 17:58 
GeneralRe: Multiple inheritance in MFC Pin
Vaclav31-Aug-04 9:57
Vaclav31-Aug-04 9:57 
GeneralStruct for CListCtrl items/subitems Pin
Thomas Latuske29-Aug-04 8:03
Thomas Latuske29-Aug-04 8:03 
GeneralRe: Struct for CListCtrl items/subitems Pin
toxcct29-Aug-04 9:24
toxcct29-Aug-04 9:24 
GeneralRe: Struct for CListCtrl items/subitems Pin
KaЯl29-Aug-04 22:53
KaЯl29-Aug-04 22:53 
GeneralRe: Struct for CListCtrl items/subitems Pin
David Crow30-Aug-04 4:44
David Crow30-Aug-04 4:44 
GeneralEllipsis / variable parameters Pin
0v3rloader29-Aug-04 6:46
0v3rloader29-Aug-04 6:46 
GeneralRe: Ellipsis / variable parameters Pin
PJ Arends29-Aug-04 8:46
professionalPJ Arends29-Aug-04 8:46 
GeneralRe: Ellipsis / variable parameters Pin
0v3rloader29-Aug-04 9:48
0v3rloader29-Aug-04 9:48 
GeneralSequentially sorting Pin
Daniel132429-Aug-04 5:46
Daniel132429-Aug-04 5:46 
GeneralRe: Sequentially sorting Pin
Maximilien29-Aug-04 6:09
Maximilien29-Aug-04 6:09 
GeneralRe: Sequentially sorting Pin
Daniel132429-Aug-04 6:26
Daniel132429-Aug-04 6:26 
GeneralRe: Sequentially sorting Pin
Maximilien29-Aug-04 6:38
Maximilien29-Aug-04 6:38 
GeneralRe: Sequentially sorting Pin
Daniel132429-Aug-04 6:43
Daniel132429-Aug-04 6:43 
GeneralRe: Sequentially sorting Pin
Ryan Binns29-Aug-04 19:24
Ryan Binns29-Aug-04 19:24 
GeneralUse STL Pin
Kevin McFarlane8-Oct-04 11:11
Kevin McFarlane8-Oct-04 11:11 
GeneralFinding CRLF or other Characters in char Pin
shibble29-Aug-04 4:32
shibble29-Aug-04 4:32 
GeneralRe: Finding CRLF or other Characters in char Pin
Member 30761229-Aug-04 7:09
Member 30761229-Aug-04 7:09 
GeneralRe: Finding CRLF or other Characters in char Pin
shibble29-Aug-04 7:19
shibble29-Aug-04 7:19 
GeneralIndentation+word wrapping in Edit windows Pin
DaFrawg29-Aug-04 2:26
DaFrawg29-Aug-04 2:26 
GeneralRe: Indentation+word wrapping in Edit windows Pin
Ryan Binns29-Aug-04 19:34
Ryan Binns29-Aug-04 19:34 
QuestionDetect available ODBC data sources? Pin
Roland E.29-Aug-04 0:09
Roland E.29-Aug-04 0:09 
AnswerRe: Detect available ODBC data sources? Pin
JimmyRopes29-Aug-04 5:04
professionalJimmyRopes29-Aug-04 5:04 
Question"Small" bug in CSimpleArray ??? Pin
Ernesto D.28-Aug-04 22:47
Ernesto D.28-Aug-04 22:47 
Hi all, ibe been trying to find a memory leak for the last 5 hours, and then i discovered what i think is a "small bug" in CSimpleArray<> collection helper, here´s an example:

class acls
{
public:
CString m_str;
// constructor, copy constructor, etc. here
};

// in some function...

// create some objects to add...
acls mycls;
mycls.m_str="ABC";
acls another;
another.m_str="CDE";

// and create the array & add the objects
CSimpleArray<acls> arr;
arr.Add(mycls);
arr.Add(another);
arr.RemoveAt(1);

this results in a memory leak pointing to the 2nd object added to the array, the interesting part is, that if you remove the very first item instead (RemoveAt(0)) there is no leak.
Can NE1 suggest a way arround this that does not involve NOT using CSimpleArray? my project is allmost finished, and rewritting everything not to use these arrays would take me forever.
thanks!

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.