Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Which part of Win32API? Pin
cmk21-May-06 21:05
cmk21-May-06 21:05 
AnswerRe: Which part of Win32API? Pin
NiceNaidu21-May-06 21:11
NiceNaidu21-May-06 21:11 
GeneralRe: Which part of Win32API? Pin
Jörgen Sigvardsson21-May-06 21:39
Jörgen Sigvardsson21-May-06 21:39 
QuestionFormating the output in the ListBox Pin
VinayCool21-May-06 19:26
VinayCool21-May-06 19:26 
AnswerRe: Formating the output in the ListBox Pin
Nibu babu thomas21-May-06 19:29
Nibu babu thomas21-May-06 19:29 
AnswerRe: Formating the output in the ListBox Pin
VinayCool21-May-06 19:43
VinayCool21-May-06 19:43 
GeneralRe: Formating the output in the ListBox Pin
Nibu babu thomas21-May-06 19:48
Nibu babu thomas21-May-06 19:48 
AnswerRe: Formating the output in the ListBox Pin
Laxman Auti21-May-06 19:45
Laxman Auti21-May-06 19:45 
vinaycool wrote:

Can anyone help with this function and to generate proper output in the list box.

Try the following code
void CSearchDlg :: disp ()
{ 
	int i = 0;
	while (strlen (shWord[i].file_name) > 1)
	{
		m_SOUT.AddString(shWord[i].file_name);
		int k = 0;
		TCHAR buff[100];
		strcpy(buff,"\0");
		while (shWord[i].w_offset[k] != -1) 
		{
			TCHAR buffer[50];
			int f=shWord[i].w_offset[k];
			_itoa(f,buffer,10);
			strcat(buff,buffer);
			strcat(buff,",");
			k++;
		}
		buff[strlen(buff)-1]='\0';
		m_SOUT.AddString(buff);
		i++;
	}
}
As well use proper indentation, so that others can understand your code. Smile | :)
I have not tested the code, hope this works

Knock out 't' from can't,
You can if you think you can
Cool | :cool:
AnswerRe: Formating the output in the ListBox Pin
VinayCool21-May-06 19:50
VinayCool21-May-06 19:50 
QuestionListCtrl Pin
vinod.sankuthodi21-May-06 19:22
vinod.sankuthodi21-May-06 19:22 
AnswerRe: ListCtrl Pin
Laxman Auti21-May-06 19:49
Laxman Auti21-May-06 19:49 
AnswerRe: ListCtrl Pin
Naveen21-May-06 20:19
Naveen21-May-06 20:19 
GeneralRe: ListCtrl Pin
ThatsAlok22-May-06 3:06
ThatsAlok22-May-06 3:06 
GeneralRe: ListCtrl Pin
Naveen22-May-06 17:10
Naveen22-May-06 17:10 
GeneralRe: ListCtrl Pin
ThatsAlok22-May-06 19:10
ThatsAlok22-May-06 19:10 
AnswerRe: ListCtrl Pin
ThatsAlok22-May-06 3:05
ThatsAlok22-May-06 3:05 
QuestionCreate a hatched bit pattern Pin
Sarath C21-May-06 19:04
Sarath C21-May-06 19:04 
AnswerRe: Create a hatched bit pattern Pin
PJ Arends21-May-06 19:33
professionalPJ Arends21-May-06 19:33 
GeneralRe: Create a hatched bit pattern Pin
Sarath C21-May-06 20:31
Sarath C21-May-06 20:31 
QuestionAll the processing in OnInitDialog() Pin
zahid_ash21-May-06 18:37
zahid_ash21-May-06 18:37 
AnswerRe: All the processing in OnInitDialog() Pin
Laxman Auti21-May-06 18:49
Laxman Auti21-May-06 18:49 
GeneralRe: All the processing in OnInitDialog() Pin
zahid_ash21-May-06 18:54
zahid_ash21-May-06 18:54 
GeneralRe: All the processing in OnInitDialog() Pin
Laxman Auti21-May-06 19:20
Laxman Auti21-May-06 19:20 
GeneralRe: All the processing in OnInitDialog() Pin
zahid_ash21-May-06 19:25
zahid_ash21-May-06 19:25 
GeneralRe: All the processing in OnInitDialog() Pin
ThatsAlok22-May-06 0:54
ThatsAlok22-May-06 0:54 

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.