Click here to Skip to main content
15,925,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 2:06
amitmistry_petlad 26-Dec-06 2:06 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 2:16
prasad_som26-Dec-06 2:16 
GeneralRe: How to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 2:38
amitmistry_petlad 26-Dec-06 2:38 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 2:45
prasad_som26-Dec-06 2:45 
GeneralRe: How to count items in list view control and select default value in combo box Pin
amitmistry_petlad 26-Dec-06 2:56
amitmistry_petlad 26-Dec-06 2:56 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som26-Dec-06 3:02
prasad_som26-Dec-06 3:02 
GeneralRe: How to count items in list view control and select default value in combo box [modified] Pin
amitmistry_petlad 27-Dec-06 3:13
amitmistry_petlad 27-Dec-06 3:13 
AnswerRe: How to count items in list view control and select default value in combo box Pin
prasad_som27-Dec-06 17:21
prasad_som27-Dec-06 17:21 
amitmistry_petlad wrote:
means @ all the odd position it gives me the null so the string will terminate
immidate after buff[1] so it shows first character only when convert into string


It is because, you are using UNICODE configuration.

amitmistry_petlad wrote:
ListView_GetItemText(hwndListview,i,0,(LPWSTR)&buff,MAX_PATH);
std::string buff_input(buff);

Modify this to,
THCAR buff[MAX_PATH]={0};
ListView_GetItemText(hwndListview,i,0,(LPWSTR)&buff,MAX_PATH);
std::wstring buff_input(buff); //wstring for wide char string


Remember, TCHAR becomes wchar_t for UNICODE and char for ANSI. And std::wstring you need to use for wide char string(which is case in UNICODE), in ANSI you need to use std::string.






Questionwhat to use for future project VC++ or VC++.Net ? Pin
Atul2326-Dec-06 0:41
Atul2326-Dec-06 0:41 
AnswerRe: what to use for future project VC++ or VC++.Net ? Pin
sunit526-Dec-06 1:08
sunit526-Dec-06 1:08 
AnswerRe: what to use for future project VC++ or VC++.Net ? Pin
prasad_som26-Dec-06 2:04
prasad_som26-Dec-06 2:04 
AnswerRe: what to use for future project VC++ or VC++.Net ? Pin
Hamid_RT26-Dec-06 7:46
Hamid_RT26-Dec-06 7:46 
Questionsmtp server authentication Pin
neha.agarwal2726-Dec-06 0:13
neha.agarwal2726-Dec-06 0:13 
AnswerRe: smtp server authentication Pin
sunit526-Dec-06 1:01
sunit526-Dec-06 1:01 
Questiondelete pointer Pin
samira forooghi26-Dec-06 0:06
samira forooghi26-Dec-06 0:06 
AnswerRe: delete pointer Pin
John R. Shaw26-Dec-06 0:36
John R. Shaw26-Dec-06 0:36 
GeneralRe: delete pointer Pin
ChandraRam26-Dec-06 1:14
ChandraRam26-Dec-06 1:14 
GeneralRe: delete pointer Pin
John R. Shaw26-Dec-06 1:29
John R. Shaw26-Dec-06 1:29 
GeneralRe: delete pointer Pin
ChandraRam26-Dec-06 1:31
ChandraRam26-Dec-06 1:31 
GeneralRe: delete pointer Pin
John R. Shaw26-Dec-06 1:52
John R. Shaw26-Dec-06 1:52 
AnswerRe: delete pointer Pin
Mark Salsbery26-Dec-06 6:08
Mark Salsbery26-Dec-06 6:08 
AnswerRe: delete pointer Pin
Mark Salsbery26-Dec-06 6:10
Mark Salsbery26-Dec-06 6:10 
AnswerRe: delete pointer Pin
Hamid_RT26-Dec-06 6:27
Hamid_RT26-Dec-06 6:27 
Questionaccessing a part of a char array Pin
Johpoke25-Dec-06 23:37
Johpoke25-Dec-06 23:37 
AnswerRe: accessing a part of a char array Pin
Johan Pretorius25-Dec-06 23:52
Johan Pretorius25-Dec-06 23:52 

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.