Click here to Skip to main content
15,893,663 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDumb CFileDialog question... Pin
RobJones5-Oct-02 12:16
RobJones5-Oct-02 12:16 
GeneralEven better yet Pin
RobJones5-Oct-02 12:45
RobJones5-Oct-02 12:45 
GeneralRe: Even better yet Pin
Atlantys5-Oct-02 13:29
Atlantys5-Oct-02 13:29 
GeneralThanks! Pin
RobJones5-Oct-02 13:38
RobJones5-Oct-02 13:38 
Generalirl like textoutput .. Pin
Mandalay5-Oct-02 11:49
Mandalay5-Oct-02 11:49 
Generalsorry, the topic is "irc like textoutput" Pin
Mandalay5-Oct-02 11:52
Mandalay5-Oct-02 11:52 
GeneralRe: sorry, the topic is "irc like textoutput" Pin
RobJones5-Oct-02 12:25
RobJones5-Oct-02 12:25 
GeneralCListCtrl adds blank items Pin
monrobot135-Oct-02 11:24
monrobot135-Oct-02 11:24 
Hello,

I'm trying to implement a CListCtrl that will add items from a database but for some reason (that I can't figure out) the CListCtrl is adding only blank strings. My code is as follows:
for (i = res.begin (); i != res.end (); i++) {
    dateinfo = *i;
    lvi.mask = LVIF_TEXT;
    lvi.iItem = j++;
    lvi.iSubItem = 0;
    lvi.pszText = (LPTSTR)(LPCTSTR) dateinfo["created"].c_str ();
    m_listDate.InsertItem (&lvi);
}
I've checked the lvi.pszText attribute of the LV_ITEM struct and it contains the string right before the call to CListCrtl.InsertItem.

Any ideas as to why blank strings are being added? Any help is much appreciated.

Thanks

- monrobot13
GeneralRe: CListCtrl adds blank items Pin
monrobot135-Oct-02 11:33
monrobot135-Oct-02 11:33 
GeneralRe: CListCtrl adds blank items Pin
Michael Dunn5-Oct-02 17:47
sitebuilderMichael Dunn5-Oct-02 17:47 
GeneralRe: CListCtrl adds blank items Pin
monrobot136-Oct-02 2:18
monrobot136-Oct-02 2:18 
GeneralRe: CListCtrl adds blank items Pin
Michael Dunn6-Oct-02 6:06
sitebuilderMichael Dunn6-Oct-02 6:06 
GeneralRe: CListCtrl adds blank items Pin
monrobot136-Oct-02 9:51
monrobot136-Oct-02 9:51 
GeneralHelp! Pin
Sunnygirl5-Oct-02 10:19
Sunnygirl5-Oct-02 10:19 
GeneralRe: Help! Pin
User 66585-Oct-02 10:51
User 66585-Oct-02 10:51 
GeneralRe: Help! Pin
Sunnygirl5-Oct-02 11:57
Sunnygirl5-Oct-02 11:57 
GeneralRe: Help! Pin
RobJones5-Oct-02 12:53
RobJones5-Oct-02 12:53 
GeneralRe: Help! Pin
Sunnygirl5-Oct-02 13:41
Sunnygirl5-Oct-02 13:41 
GeneralRe: Help! Pin
alex.barylski5-Oct-02 17:22
alex.barylski5-Oct-02 17:22 
GeneralRe: Help! Pin
Sunnygirl5-Oct-02 22:40
Sunnygirl5-Oct-02 22:40 
GeneralRe: Help! Pin
alex.barylski5-Oct-02 23:59
alex.barylski5-Oct-02 23:59 
GeneralShell programing Pin
Member 135142965-Oct-02 9:19
Member 135142965-Oct-02 9:19 
GeneralRe: Shell programing Pin
Michael Dunn5-Oct-02 9:45
sitebuilderMichael Dunn5-Oct-02 9:45 
QuestionNo empty CControlBar??? Pin
Daniel Strigl5-Oct-02 8:40
Daniel Strigl5-Oct-02 8:40 
GeneralRecommended Advanced C++ Books :: C++ Pin
valikac5-Oct-02 5:22
valikac5-Oct-02 5:22 

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.