Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOdd compiler bug or such? Pin
Daniel 'Tak' M.24-Jun-08 14:59
Daniel 'Tak' M.24-Jun-08 14:59 
AnswerRe: Odd compiler bug or such? Pin
Naveen24-Jun-08 15:05
Naveen24-Jun-08 15:05 
GeneralRe: Odd compiler bug or such? Pin
Daniel 'Tak' M.24-Jun-08 15:11
Daniel 'Tak' M.24-Jun-08 15:11 
GeneralRe: Odd compiler bug or such? Pin
Naveen24-Jun-08 15:17
Naveen24-Jun-08 15:17 
GeneralRe: Odd compiler bug or such? Pin
Daniel 'Tak' M.25-Jun-08 3:24
Daniel 'Tak' M.25-Jun-08 3:24 
GeneralRe: Odd compiler bug or such? Pin
Iain Clarke, Warrior Programmer25-Jun-08 4:32
Iain Clarke, Warrior Programmer25-Jun-08 4:32 
GeneralRe: Odd compiler bug or such? Pin
Daniel 'Tak' M.25-Jun-08 12:52
Daniel 'Tak' M.25-Jun-08 12:52 
QuestionListView What am I not seeing or doing Pin
jonsey2984724-Jun-08 14:52
jonsey2984724-Jun-08 14:52 
In my application I am posting test results (description, result) to a list view using the following code;

void PostDataTroubleCodes(HWND hwndDlg, int DataToPost)
{
	int Flags;
	char *PostData[20];

	HWND hList;

	hList = GetDlgItem(hwndDlg, LV_PIDDATA);
	memset(&LvItem, 0, sizeof(LvItem));

	LvItem.mask=LVIF_TEXT;   
	LvItem.cchTextMax = 256; 
	LvItem.iItem=0;          

	LvItem.iSubItem = 0;
	LvItem.pszText = "";
	LvItem.pszText = "Number of emission related codes";      //this will be results on subsequent calls 
	SendMessage(hList, LVM_INSERTITEM, 0, (LPARAM)&LvItem);

	Flags = DataToPost;
	itoa(Flags,LvItem.pszText, 10);

	LvItem.iSubItem = 1;
	SendMessage(hList, LVM_SETITEM, 0, (LPARAM)&LvItem);
	LvItem.pszText = "";

}


The first time data is posted all is well, the second time however instead of the description the results are posted to iSubItem 0.

Thanks you in advance for your help.
AnswerRe: ListView What am I not seeing or doing [Solved] Pin
jonsey2984724-Jun-08 15:16
jonsey2984724-Jun-08 15:16 
Questionread line from file Pin
sofia_11124-Jun-08 11:38
sofia_11124-Jun-08 11:38 
AnswerRe: read line from file Pin
Saurabh.Garg24-Jun-08 14:28
Saurabh.Garg24-Jun-08 14:28 
GeneralRe: read line from file Pin
sofia_11127-Jun-08 1:55
sofia_11127-Jun-08 1:55 
GeneralRe: read line from file Pin
sofia_11129-Jun-08 13:45
sofia_11129-Jun-08 13:45 
AnswerRe: read line from file Pin
Nibu babu thomas24-Jun-08 19:23
Nibu babu thomas24-Jun-08 19:23 
AnswerRe: read line from file Pin
Hamid_RT27-Jun-08 7:50
Hamid_RT27-Jun-08 7:50 
QuestionHow to Fix Ordinal problems Pin
problemfixer24-Jun-08 11:16
problemfixer24-Jun-08 11:16 
AnswerRe: How to Fix Ordinal problems Pin
CPallini24-Jun-08 21:25
mveCPallini24-Jun-08 21:25 
GeneralRe: How to Fix Ordinal problems Pin
problemfixer25-Jun-08 4:17
problemfixer25-Jun-08 4:17 
Question[Message Deleted] Pin
scottmp1024-Jun-08 9:19
scottmp1024-Jun-08 9:19 
AnswerRe: System tray hard crash on close Pin
led mike24-Jun-08 10:08
led mike24-Jun-08 10:08 
AnswerRe: [Message Deleted] Pin
Hamid_RT27-Jun-08 7:43
Hamid_RT27-Jun-08 7:43 
QuestionHow do I get a menu bar by using a resource ID? Pin
KellyR24-Jun-08 9:12
KellyR24-Jun-08 9:12 
AnswerRe: How do I get a menu bar by using a resource ID? Pin
led mike24-Jun-08 9:41
led mike24-Jun-08 9:41 
GeneralRe: How do I get a menu bar by using a resource ID? Pin
KellyR24-Jun-08 9:44
KellyR24-Jun-08 9:44 
AnswerRe: How do I get a menu bar by using a resource ID? Pin
Hamid_RT27-Jun-08 7:49
Hamid_RT27-Jun-08 7:49 

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.