Click here to Skip to main content
15,901,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl1-Jul-03 0:15
Dominik Reichl1-Jul-03 0:15 
AnswerRe: Custom Draw in CListCtrl - how to change background of icons? Pin
basementman30-Jun-03 4:35
basementman30-Jun-03 4:35 
GeneralList Box Pin
Jay Hova30-Jun-03 2:57
Jay Hova30-Jun-03 2:57 
GeneralRe: List Box Pin
Michael P Butler30-Jun-03 3:07
Michael P Butler30-Jun-03 3:07 
QuestionIs GetItemText limited to 256 bytes for CString ? Pin
Wormhole523030-Jun-03 2:51
Wormhole523030-Jun-03 2:51 
AnswerRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Trollslayer30-Jun-03 3:40
mentorTrollslayer30-Jun-03 3:40 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 4:16
Wormhole523030-Jun-03 4:16 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Trollslayer30-Jun-03 5:41
mentorTrollslayer30-Jun-03 5:41 
Its not a bug in CString, its the function that returns CString. They have to call the original function and in the course of that add the length parameter. And thinking that 256 chars would have been enough....
If you look at the library code there will be a GetBuffer(256) statement with the length also set to 256. Make sure these match in your code or you could get an overflow.

Elaine Rose | [Rose]

The tigress is here Big Grin | :-D
AnswerRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 6:04
David Crow30-Jun-03 6:04 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 6:19
Wormhole523030-Jun-03 6:19 
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 
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 

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.