I got a class derived from CList, as class CPointList : public CList { ... } I want to declare it DYNAMIC, but as i wrote this in .cpp IMPLEMENT_DYNAMIC(CPointList,CList The compiler gave an error: warning C4002: too many actual parameters for macro 'IMPLEMENT_DYNAMIC' How can I declare it to be dynamic?
Charles Liu
Posts
-
Can I use the DECLARE_DYNAMIC macro for a CList derived class? -
Problem while deriving from CListI got a class declared as follows: class CWordItemList : public CList{ public: void AddTail(CWordItemList* pList); ... }; void CWordItemList::AddTail(CWordItemList *pList) { CList::AddTail(pList); //the program asserts(ASSERT_VALID) and throws an error ... } How should I derive from CList?
-
How to highlight items in CTreeCtrl?I tried to use CTreeCtrl::SetItemState, setting the flag TVIS_SELECTED. But I found that only one items was highlighted. How can I highlight a set of items? Thanks
-
Highlight items in CTreeCtrlHow could I highlight certain items in CTreeCtrl? I tried to use CTreeCtrl::SetItemState(),setting the flag as TVIS_SELECTED. But only one item was highlighted. Thanks.
-
How to cast a pointer to a member function into a void*?I got the code as follows: class A{ int f(); //f defined elsewhere } void main() { void* p; p = A::f; //it gives a compiler error //how to cast f into p? //My friend did that in asm, however i want an easier way. } Thanks in advance
-
Can I retrieve column names using MFC classesSorry,I found that I hadn't expressed myself clearly. What I want to know is all the column names of the table, not only the names in the recordset.
-
Can I retrieve column names using MFC classesI am developing a MFC-based program (using CRecordset and CDatabase) dealt with MS Access. I want to retrieve the column names of a table. Could I do that without using ODBC APIs?
-
How to convert a Unicode text file into Ascii?I want to convert a text file, which is encoded in Unicode, into a Ascii one. The text is a mixture of Chinese characters and English. How can I do that?
-
Problem about serialization and filenameI'm adding serialize suport for my application. However, the output file had no suffix (showed as "text" ,not "text.***"). How to fix this?
-
Debugging a network-based program on a single computerI've got a network program to debug(a simple web server).Unfortunately, on the time being,I can't connect to the network.How can I debug my program?
-
Breakpoint problem----howto use it in a loopI got some code contains a loop which execuates for about 20000 times.How can I step into the 10000th execuation?:confused: