Click here to Skip to main content
15,929,356 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to check for installed application Pin
chirag_chauhan23-Feb-07 0:30
chirag_chauhan23-Feb-07 0:30 
AnswerRe: How to check for installed application Pin
David Crow23-Feb-07 3:01
David Crow23-Feb-07 3:01 
QuestionChange text of header of listCtrl Pin
ensger22-Feb-07 21:14
ensger22-Feb-07 21:14 
AnswerRe: Change text of header of listCtrl Pin
Nibu babu thomas22-Feb-07 22:00
Nibu babu thomas22-Feb-07 22:00 
GeneralRe: Change text of header of listCtrl Pin
ensger22-Feb-07 22:11
ensger22-Feb-07 22:11 
GeneralRe: Change text of header of listCtrl Pin
ensger23-Feb-07 2:49
ensger23-Feb-07 2:49 
GeneralRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 3:20
Nibu babu thomas23-Feb-07 3:20 
GeneralRe: Change text of header of listCtrl [modified] Pin
ensger23-Feb-07 5:35
ensger23-Feb-07 5:35 
OMG | :OMG: OMG | :OMG:
Maybe my part of code was too shortConfused | :confused: so I send the whole loop

	<br />
  LVCOLUMN lvc;<br />
	CString titel;<br />
	int i = 3;<br />
	if (kstkaranz->wdfirst())<br />
		do<br />
		{<br />
			i++;<br />
			titel = kstkaranz->wdgetkstnr() + "\n";<br />
			titel = titel + gettitel(0, kstkaranz->wdgetdatenart(), kstkaranz->wdgetvon(), kstkaranz->wdgetbis());<br />
			listCtrl.GetColumn(i, &lvc);<br />
	char strbetrag[100];<br />
<br />
	sprintf(strbetrag, "%s", titel);<br />
			lvc.pszText = strbetrag;<br />
			listCtrl.SetColumn(i, &lvc);<br />
		}<br />
		while(kstkaranz->wdnext());<br />


where kstkaranz->wdgetkstnr = something like "6984" (number of a cost center) and the result of gettitle is something like " PLAN VALUES 2007-01-01 - 2007-02-28'. The whole result in titel is a CString (with numbers, of course, but handled as CString).

Btw, it works fine and as there should be no difference, whatever the CString titel contains, I see no danger. But your posting made me consider ....??

Btw2: if I try "lvc.pszText = titel;" I get an error-message like (I try to translate): Binary operator: no operator defined who accepts a right-sided operator of type 'class CString' Dead | X|






-- modified at 12:07 Friday 23rd February, 2007
GeneralRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 19:12
Nibu babu thomas23-Feb-07 19:12 
GeneralRe: Change text of header of listCtrl Pin
ensger23-Feb-07 20:14
ensger23-Feb-07 20:14 
GeneralRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 20:21
Nibu babu thomas23-Feb-07 20:21 
JokeRe: Change text of header of listCtrl Pin
Mark Salsbery23-Feb-07 8:54
Mark Salsbery23-Feb-07 8:54 
JokeRe: Change text of header of listCtrl Pin
ensger23-Feb-07 9:05
ensger23-Feb-07 9:05 
GeneralRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 19:15
Nibu babu thomas23-Feb-07 19:15 
JokeRe: Change text of header of listCtrl Pin
Nibu babu thomas23-Feb-07 19:16
Nibu babu thomas23-Feb-07 19:16 
QuestionProblem with Passing parameters to a process created using Createprocess() Pin
techneeli22-Feb-07 21:11
techneeli22-Feb-07 21:11 
AnswerRe: Problem with Passing parameters to a process created using Createprocess() Pin
Hamid_RT23-Feb-07 20:06
Hamid_RT23-Feb-07 20:06 
QuestionAsking For Help... Client-Server application Pin
Pardi Banjarnahor22-Feb-07 20:40
Pardi Banjarnahor22-Feb-07 20:40 
AnswerRe: Asking For Help... Client-Server application Pin
Ravi Bhavnani23-Feb-07 4:17
professionalRavi Bhavnani23-Feb-07 4:17 
AnswerRe: Asking For Help... Client-Server application Pin
Hamid_RT23-Feb-07 20:03
Hamid_RT23-Feb-07 20:03 
QuestionTo read data on webpage Pin
johnalek22-Feb-07 20:15
johnalek22-Feb-07 20:15 
AnswerRe: To read data on webpage Pin
Sahir Shah22-Feb-07 20:39
Sahir Shah22-Feb-07 20:39 
GeneralRe: To read data on webpage Pin
MuraliKrishnaP22-Feb-07 20:54
MuraliKrishnaP22-Feb-07 20:54 
QuestionRe: To read data on webpage Pin
David Crow23-Feb-07 3:08
David Crow23-Feb-07 3:08 
AnswerRe: To read data on webpage Pin
Ravi Bhavnani23-Feb-07 4:20
professionalRavi Bhavnani23-Feb-07 4:20 

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.