Click here to Skip to main content
15,894,252 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Terminate an exe from another exe ? Pin
David Crow16-Aug-05 4:09
David Crow16-Aug-05 4:09 
GeneralRe: Terminate an exe from another exe ? Pin
Amarelia16-Aug-05 18:11
Amarelia16-Aug-05 18:11 
GeneralRe: Terminate an exe from another exe ? Pin
David Crow17-Aug-05 2:08
David Crow17-Aug-05 2:08 
GeneralChecking the type of mouse in Win32 Pin
SanjaySMK15-Aug-05 23:36
SanjaySMK15-Aug-05 23:36 
GeneralRe: Checking the type of mouse in Win32 Pin
mark novak16-Aug-05 0:27
mark novak16-Aug-05 0:27 
QuestionHow to set image DPI Pin
a_du15-Aug-05 23:28
a_du15-Aug-05 23:28 
AnswerRe: How to set image DPI Pin
Chris Losinger16-Aug-05 4:00
professionalChris Losinger16-Aug-05 4:00 
GeneralProblem with list control Pin
zhaopi15-Aug-05 22:26
zhaopi15-Aug-05 22:26 
I am declaring a list and add in contents into it~
But i am always unpredictably facing the display problem~
For example, i am reading information from a database entry by entry, but what is displayed in the list control is totally out of order, and correspondance is wrong. what is worse, some of the colums are blank though i can see the entries are correctly inserted into the list(i have traced this using break point).

The code i used is as below:

(m_bList is the list control declared)
int index;<br />
for(index = 0; index < total; index++)<br />
{<br />
LV_ITEM lvi;<br />
lvi.mask = LVIF_TEXT;<br />
<br />
lvi.iItem = index;<br />
lvi.iSubItem = 0;<br />
lvi.pszText = (LPSTR)(LPCSTR)sbatchid;<br />
lvi.lParam = 1;<br />
m_bList.InsertItem(&lvi);	<br />
<br />
lvi.iSubItem = 1;<br />
lvi.pszText = (LPSTR)(LPCSTR)page;m_bList.SetItem(&lvi);<br />
		<br />
CString modi = time.Format("%Y/%m/%d/%H:%M");<br />
<br />
lvi.iSubItem = 2;<br />
lvi.pszText = (LPSTR)(LPCSTR)modi;<br />
m_bList.SetItem(&lvi);<br />
}

GeneralRe: Problem with list control Pin
Rage15-Aug-05 23:16
professionalRage15-Aug-05 23:16 
GeneralRe: Problem with list control Pin
Rage15-Aug-05 23:32
professionalRage15-Aug-05 23:32 
GeneralRe: Problem with list control Pin
zhaopi16-Aug-05 0:42
zhaopi16-Aug-05 0:42 
GeneralRe: Problem with list control Pin
Rage16-Aug-05 2:38
professionalRage16-Aug-05 2:38 
GeneralRe: Problem with list control Pin
David Crow16-Aug-05 4:23
David Crow16-Aug-05 4:23 
GeneralRe: Problem with list control Pin
zhaopi16-Aug-05 15:42
zhaopi16-Aug-05 15:42 
GeneralRe: Problem with list control Pin
Rage16-Aug-05 20:58
professionalRage16-Aug-05 20:58 
Generalsave/open in text Pin
cell5115-Aug-05 22:03
cell5115-Aug-05 22:03 
GeneralRe: save/open in text Pin
toxcct15-Aug-05 22:39
toxcct15-Aug-05 22:39 
Questioncan STL process wchar_t? Pin
xiaohe52115-Aug-05 21:58
xiaohe52115-Aug-05 21:58 
AnswerRe: can STL process wchar_t? Pin
mark novak16-Aug-05 0:22
mark novak16-Aug-05 0:22 
AnswerRe: can STL process wchar_t? Pin
4apai16-Aug-05 0:52
4apai16-Aug-05 0:52 
GeneralCreation DIME-envelope in C++ Pin
Ptmk15-Aug-05 21:36
Ptmk15-Aug-05 21:36 
GeneralRe: Creation DIME-envelope in C++ Pin
Ptmk16-Aug-05 3:16
Ptmk16-Aug-05 3:16 
QuestionHow to make my program run when my computer boots. Pin
pantao55115-Aug-05 21:24
pantao55115-Aug-05 21:24 
AnswerRe: How to make my program run when my computer boots. Pin
Weiye Chen15-Aug-05 21:30
Weiye Chen15-Aug-05 21:30 
AnswerRe: How to make my program run when my computer boots. Pin
ThatsAlok16-Aug-05 1:13
ThatsAlok16-Aug-05 1:13 

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.