Hi guys, what is the best methods to hunt for the memory leaks? thanks
Kleser
Posts
-
Hunt for memory leaks -
deleting all files from a folderhi, i don't want to give you an answer, instead i would like to ask about how you can make your app create an mdb file. because this is what i trying to do right now. if you don't mind, would you share me you little secret? thanks in advance. cheers -- modified at 10:25 Friday 18th August, 2006
-
not using the UNICODE libs in VS 2005in VS NET 2005 if you don't use the UNICODE libraries for your MFC application, then the edit control box (in form view or dialog) will be no longer flat. is anybody has any idea how to fix this? cheers
-
Applicationi was not a guru either as i beginning to write my first app with MFC, after a while (months) i have great fun using MFC. C++ worth it
-
mysql databasesee the mysql's online manual (under the directory docs in the installation dir) and read the "post-installation setup and testing" section. everything you need to know is available there. good luck
-
Make toolbars undockableHi guys, i need some help, how can i make that the user not be able to undock the toolbars from the mainframe? thanks in advance...:-D
-
Hiding cursorhow can make a cursor invisible in a certain application?
-
RemoveAll() methodi made a mistake writing the code above. it has to look like this: void COtherClass::FirstFunction(CArray<CSomeClass, CSomeClass&>* pSomeClassArray) { .... } instead of this: void COtherClass::FirstFunction(CArray<CSomeClass, CSomeClass&>& pSomeClassArray) { .... } the method has a pointer parameter instead of a reference parameter. i guess CSomeClass does not implement a copy constructor, i have not added anything in the constructor neither write a new constructor in that class. :confused: i use the class the way it is as i show you before, and it seems to work. but i want to know how to implement a copy constructor, can you please show me how to do it? thanks in advance :-D
-
RemoveAll() methodthanks for all the responses, please look at this code: void COtherClass::FirstFunction(CArray<CSomeClass, CSomeClass&> & pSomeClassArray) { CSomeClass objSomeClass; pSomeClassArra.Add(objSomeClass); ...... } void COtherClass::SecondFunction() { // m_objSomeClassArray is a member variable array of COtherClass (Type CSomeClass) FirstFunction(&m_objSomeClassArray); ...... m_objSomeClassArray.RemoveAll(); } is this OK?
-
RemoveAll() methodHi all, maybe somebody can help me out with this. if i do this: class CSomeClass { ...... }; CArray objSomeClassArray; CSomeClass objSomeClass; objSomeClassArray.Add(objSomeClass); ... objSomeClassArray.RemoveAll(); my question is: does the RemoveAll() method in this case free also the memory? if not what should i do to free them? thanks a lot
-
Choose printer automaticallythanks for your reply, this works with MFC? thanks
-
Choose printer automaticallyHi all, How can i make my application to choose a printer other than the default printer programmatically? thanks:laugh: kleser