Click here to Skip to main content
15,884,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 6:29
David Crow30-Jun-03 6:29 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 6:55
Wormhole523030-Jun-03 6:55 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 7:22
David Crow30-Jun-03 7:22 
GeneralRe: You are right and I am right too. Pin
Wormhole523030-Jun-03 7:40
Wormhole523030-Jun-03 7:40 
GeneralRe: You are right and I am right too. Pin
David Crow30-Jun-03 7:45
David Crow30-Jun-03 7:45 
GeneralRe: You are right and I am right too. Pin
Wormhole523030-Jun-03 8:03
Wormhole523030-Jun-03 8:03 
QuestionCan I use the DECLARE_DYNAMIC macro for a CList derived class? Pin
Charles Liu30-Jun-03 2:46
Charles Liu30-Jun-03 2:46 
AnswerRe: Can I use the DECLARE_DYNAMIC macro for a CList derived class? Pin
Ryan Binns30-Jun-03 3:24
Ryan Binns30-Jun-03 3:24 
Charles Liu wrote:
How can I declare it to be dynamic?

Yes, but instead of CList<CPoint*,CPoint*&>, you need to use CObject. CList is not DECLARE_DYNAMIC(), so you can't specify it as the base class.

Doing this means that you can tell what class the CPointList is, but it will appear to be a direct descendent of CObject, ie. RUNTIME_CLASS(CPointList)->GetBaseClass() will return RUNTIME_CLASS(CObject).

BTW, the reason the compiler tells you it has too many parameters is because the preprocessor doesn't care about C syntax - it just splits the macro at the commas. It does not care (and does not know) that the second comma is inside a template definition, and assumes it to be separating parameters. The only comma is treats differently is one that's inside a string.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

Generalread data from digital camera Pin
includeh1030-Jun-03 2:39
includeh1030-Jun-03 2:39 
GeneralRe: read data from digital camera Pin
basementman30-Jun-03 4:39
basementman30-Jun-03 4:39 
GeneralSerial Comms TimeOut Formula Pin
louis30-Jun-03 2:27
louis30-Jun-03 2:27 
GeneralRe: Serial Comms TimeOut Formula Pin
louis30-Jun-03 3:26
louis30-Jun-03 3:26 
GeneralMFC Edit Ctrl Pin
frackasse30-Jun-03 2:24
frackasse30-Jun-03 2:24 
GeneralRe: MFC Edit Ctrl Pin
David Crow30-Jun-03 2:40
David Crow30-Jun-03 2:40 
GeneralRe: MFC Edit Ctrl Pin
frackasse30-Jun-03 3:04
frackasse30-Jun-03 3:04 
GeneralRe: MFC Edit Ctrl Pin
David Crow30-Jun-03 3:22
David Crow30-Jun-03 3:22 
General,Serial Comms TimeOut Formula Pin
louis30-Jun-03 2:23
louis30-Jun-03 2:23 
QuestionHow to covert CString to TCHAR and CString to LPCWSTR? Pin
julych30-Jun-03 1:26
julych30-Jun-03 1:26 
AnswerRe: How to covert CString to TCHAR and CString to LPCWSTR? Pin
RChin30-Jun-03 1:39
RChin30-Jun-03 1:39 
AnswerRe: How to covert CString to TCHAR and CString to LPCWSTR? Pin
Peter Weyzen30-Jun-03 8:45
Peter Weyzen30-Jun-03 8:45 
Generalpointer to the app Pin
andyg.10130-Jun-03 1:16
andyg.10130-Jun-03 1:16 
GeneralRe: pointer to the app Pin
RChin30-Jun-03 1:43
RChin30-Jun-03 1:43 
GeneralRe: pointer to the app Pin
andyg.10130-Jun-03 2:21
andyg.10130-Jun-03 2:21 
GeneralRe: pointer to the app Pin
David Crow30-Jun-03 2:43
David Crow30-Jun-03 2:43 
GeneralRe: pointer to the app Pin
RChin30-Jun-03 3:23
RChin30-Jun-03 3:23 

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.