Click here to Skip to main content
15,916,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionretrieving an offset from an EXE Pin
SharatChandra21-Mar-07 21:14
SharatChandra21-Mar-07 21:14 
AnswerRe: retrieving an offset from an EXE Pin
toxcct21-Mar-07 23:46
toxcct21-Mar-07 23:46 
AnswerRe: retrieving an offset from an EXE Pin
James R. Twine22-Mar-07 1:57
James R. Twine22-Mar-07 1:57 
GeneralRe: retrieving an offset from an EXE Pin
David Crow22-Mar-07 3:33
David Crow22-Mar-07 3:33 
Questionregarding WAVE to MP3 conversion Pin
puneet_cha21-Mar-07 21:05
puneet_cha21-Mar-07 21:05 
AnswerRe: regarding WAVE to MP3 conversion Pin
Rajesh R Subramanian22-Mar-07 0:52
professionalRajesh R Subramanian22-Mar-07 0:52 
AnswerRe: regarding WAVE to MP3 conversion Pin
Mark Salsbery22-Mar-07 8:00
Mark Salsbery22-Mar-07 8:00 
Questionlistview remove item problem Pin
amitmistry_petlad 21-Mar-07 21:04
amitmistry_petlad 21-Mar-07 21:04 
Well I have almost done the remove item from the list but the problem is that one item is rest each time in the listview when I clicked to “clearcomplete”.

In detail,
I add my files from the add button and select that file and proceed to protect, before protection the file shown the status “incomplete” but when the file protected
I had change the status to “complete” in the particular column. When a bundle of “complete” files seen in the list the user can remove it from the listview for that I have write the code
On WM_COMMAND providing one for loop , iterate up to count in each count checking out whether the column having “complete” then remove it, but when I fetch the status it shown me each time “complete” incase of when counter(i) contain the status “incomplete”.

Please check the code is it ok ?

case IDC_CLR_COMPLETED: 
                        {
                              if(lParam==-1)
                              {                             
                                    EnableWindow(hDlg,FALSE);
                              }
                              else
                              {
                        int count=ListView_GetItemCount(hList);                           
                        TCHAR buff[MAX_PATH]={0};
                                    for(int i=0;i<count;i++)
                                    {                       
                                                
                  ListView_GetItemText(hList,i,9,(LPWSTR)&buff,MAX_PATH);// I found the fault here might be the buff not cleared every time so its display "complete" every time incase of when item having "incomplet". 
                                                std::wstring buff_input(buff);      
                                                std::string compare(buff_input.begin(),buff_input.end());                     
                                                if(compare=="complete")
                                                {
                                                 ListView_DeleteItem(hList,i);
      
                                                }                             
                                    }
                                }
                        }
                      break; 


2) how can I call Wndproc again once I logout? Do I need to make any service for that? In my application there is login/logout funda.
Help ! me please!


Thanks & regards
Amit



"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India

AnswerRe: listview remove item problem Pin
Parthi_Appu21-Mar-07 21:13
Parthi_Appu21-Mar-07 21:13 
GeneralRe: listview remove item problem Pin
amitmistry_petlad 21-Mar-07 21:21
amitmistry_petlad 21-Mar-07 21:21 
GeneralRe: listview remove item problem Pin
prasad_som21-Mar-07 21:33
prasad_som21-Mar-07 21:33 
GeneralRe: listview remove item problem Pin
Parthi_Appu21-Mar-07 21:40
Parthi_Appu21-Mar-07 21:40 
QuestionRe: listview remove item problem Pin
David Crow22-Mar-07 3:38
David Crow22-Mar-07 3:38 
AnswerRe: listview remove item problem [modified] Pin
Parthi_Appu22-Mar-07 16:59
Parthi_Appu22-Mar-07 16:59 
GeneralRe: listview remove item problem Pin
David Crow23-Mar-07 8:15
David Crow23-Mar-07 8:15 
GeneralRe: listview remove item problem Pin
Parthi_Appu25-Mar-07 16:48
Parthi_Appu25-Mar-07 16:48 
AnswerRe: listview remove item problem Pin
prasad_som21-Mar-07 21:14
prasad_som21-Mar-07 21:14 
GeneralRe: listview remove item problem Pin
amitmistry_petlad 21-Mar-07 21:22
amitmistry_petlad 21-Mar-07 21:22 
QuestionEdit box problem. Pin
G Haranadh21-Mar-07 20:54
G Haranadh21-Mar-07 20:54 
AnswerRe: Edit box problem. Pin
Parthi_Appu21-Mar-07 21:05
Parthi_Appu21-Mar-07 21:05 
GeneralRe: Edit box problem. Pin
G Haranadh21-Mar-07 23:06
G Haranadh21-Mar-07 23:06 
Questionfor checking correct mail id Pin
Y_Kaushik21-Mar-07 20:46
Y_Kaushik21-Mar-07 20:46 
AnswerRe: for checking correct mail id [modified] Pin
G Haranadh21-Mar-07 20:56
G Haranadh21-Mar-07 20:56 
AnswerRe: for checking correct mail id Pin
Parthi_Appu21-Mar-07 21:01
Parthi_Appu21-Mar-07 21:01 
Questionwhat should be code for resizing the drawn image in pixels Pin
kindd21-Mar-07 20:36
kindd21-Mar-07 20:36 

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.