Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: search a list control Pin
carter200019-Jul-09 23:42
carter200019-Jul-09 23:42 
GeneralRe: search a list control Pin
rahuljin21-Jul-09 10:05
rahuljin21-Jul-09 10:05 
GeneralRe: search a list control Pin
carter200021-Jul-09 15:02
carter200021-Jul-09 15:02 
GeneralRe: search a list control Pin
carter200021-Jul-09 15:08
carter200021-Jul-09 15:08 
GeneralRe: search a list control [modified] Pin
rahuljin21-Jul-09 20:13
rahuljin21-Jul-09 20:13 
AnswerRe: search a list control Pin
Naveen17-Jul-09 23:07
Naveen17-Jul-09 23:07 
GeneralRe: search a list control Pin
rahuljin17-Jul-09 23:46
rahuljin17-Jul-09 23:46 
AnswerRe: search a list control Pin
carter200020-Jul-09 20:48
carter200020-Jul-09 20:48 
Smile | :)
LVFINDINFO temp;
CString ff;
temp.flags = LVFI_STRING | LVFI_PARTIAL;
CStdioFile fileh;
fileh.Open(L"C:\\srvc.txt", CFile::modeRead);
int i;
do
{
    if(fileh.ReadString(ff)== NULL)
    {
        break;
    }
    temp.psz = ff.GetBuffer();
    i = m_objListCtrl.FindItem(&temp);
    if(lstrcmp(m_objListCtrl.GetItemText(i, 0), temp.psz) == 0)
    {
        m_objListCtrl.SetCheck(i, TRUE);
    }
}
while(ff.GetBuffer() != NULL);
fileh.Close();


This can work in my computer, but I don't guarantee it could work in your computer.
And by the way, I am in school now, but tomorrow I'll back home(There is no computer in my house Smile | :) ). It means I could not use computer for a long time. And I can't solve problem together with you, I'm sorry for that..
QuestionInstallling an XP Program in Vista Pin
Bram van Kampen17-Jul-09 15:15
Bram van Kampen17-Jul-09 15:15 
AnswerRe: Installling an XP Program in Vista Pin
ThatsAlok18-Jul-09 7:41
ThatsAlok18-Jul-09 7:41 
QuestionConverting static libraries to dynamic libraries. Pin
Ben Burnett17-Jul-09 7:35
Ben Burnett17-Jul-09 7:35 
AnswerRe: Converting static libraries to dynamic libraries. Pin
Stuart Dootson17-Jul-09 13:10
professionalStuart Dootson17-Jul-09 13:10 
GeneralRe: Converting static libraries to dynamic libraries. Pin
Rick York18-Jul-09 16:48
mveRick York18-Jul-09 16:48 
QuestionRedisplay image in new dimensions Pin
Darryl Bryk17-Jul-09 7:27
Darryl Bryk17-Jul-09 7:27 
AnswerRe: Redisplay image in new dimensions Pin
Rozis17-Jul-09 11:54
Rozis17-Jul-09 11:54 
GeneralRe: Redisplay image in new dimensions Pin
Darryl Bryk17-Jul-09 12:40
Darryl Bryk17-Jul-09 12:40 
GeneralRe: Redisplay image in new dimensions Pin
Rozis18-Jul-09 0:45
Rozis18-Jul-09 0:45 
GeneralRe: Redisplay image in new dimensions Pin
Darryl Bryk20-Jul-09 12:41
Darryl Bryk20-Jul-09 12:41 
GeneralRe: Redisplay image in new dimensions Pin
Darryl Bryk24-Jul-09 13:07
Darryl Bryk24-Jul-09 13:07 
AnswerRe: Redisplay image in new dimensions Pin
Darryl Bryk24-Jul-09 13:41
Darryl Bryk24-Jul-09 13:41 
Question[Message Deleted] Pin
sam_psycho17-Jul-09 7:16
sam_psycho17-Jul-09 7:16 
QuestionRe: Execute C C++ programs in linux environment. Pin
David Crow17-Jul-09 7:19
David Crow17-Jul-09 7:19 
Questionconvert c to c++ Pin
Member 311244717-Jul-09 6:43
Member 311244717-Jul-09 6:43 
QuestionRe: convert c to c++ Pin
David Crow17-Jul-09 7:03
David Crow17-Jul-09 7:03 
AnswerRe: convert c to c++ Pin
Stuart Dootson17-Jul-09 13:07
professionalStuart Dootson17-Jul-09 13:07 

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.