Click here to Skip to main content
16,011,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxThrowOleDispatchException not working for me .. Pin
vishalsp11-Feb-02 4:25
vishalsp11-Feb-02 4:25 
GeneralLoading Problem Pin
Sonu Kapoor7-Feb-02 7:18
Sonu Kapoor7-Feb-02 7:18 
GeneralRe: Loading Problem Pin
Joaquín M López Muñoz7-Feb-02 7:53
Joaquín M López Muñoz7-Feb-02 7:53 
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 8:40
Sonu Kapoor7-Feb-02 8:40 
GeneralRe: Loading Problem Pin
User 66587-Feb-02 8:53
User 66587-Feb-02 8:53 
GeneralRe: Loading Problem Pin
Nish Nishant7-Feb-02 8:55
sitebuilderNish Nishant7-Feb-02 8:55 
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 8:59
Sonu Kapoor7-Feb-02 8:59 
GeneralRe: Loading Problem Pin
Joaquín M López Muñoz7-Feb-02 9:09
Joaquín M López Muñoz7-Feb-02 9:09 
I don't think CStdioFile is having anything to do with the slowness of your code (you can verify this commenting out the code inside the loop and seeing if the app still goes slow).
More probably it is the process of populating the CListCtrl that is causing your app to go slowmo. You can do two things to accelerate this process:
  • Rick York pointed out an interesting idea in a previous thread today that applies to your case. Use WM_SETREDRAW to prevent redrawing while you fill the list:
    list.SendMessage(WM_SETREDRAW,(WPARAM)FALSE,0);
    while(...){
    ...
    }
    list.SendMessage(WM_SETREDRAW,(WPARAM)TRUE,0);

  • Make sure the styles LVS_SORTASCENDING and LVS_SORTDESCENDING are note set for the list control, to prevent sorting in the middle of the population process. Later, you can sort the data (if this is your wish) with CListCtl::SortItems.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Loading Problem Pin
Sonu Kapoor7-Feb-02 9:14
Sonu Kapoor7-Feb-02 9:14 
GeneralSams book on visual C++ Pin
Rajveer7-Feb-02 5:31
Rajveer7-Feb-02 5:31 
GeneralRe: Sams book on visual C++ Pin
Jon Hulatt7-Feb-02 6:18
Jon Hulatt7-Feb-02 6:18 
GeneralRe: C2664 Pin
7-Feb-02 4:52
suss7-Feb-02 4:52 
GeneralRe: C2664 Pin
Jon Hulatt7-Feb-02 5:04
Jon Hulatt7-Feb-02 5:04 
GeneralRe: C2664 Pin
Giles7-Feb-02 9:40
Giles7-Feb-02 9:40 
GeneralRe: C2664 Pin
Christian Graus7-Feb-02 9:51
protectorChristian Graus7-Feb-02 9:51 
GeneraleVC Image Zoom Problem Pin
7-Feb-02 4:36
suss7-Feb-02 4:36 
GeneraliCListView and CTreeView Pin
7-Feb-02 3:07
suss7-Feb-02 3:07 
GeneralRe: iCListView and CTreeView Pin
Jon Hulatt7-Feb-02 4:42
Jon Hulatt7-Feb-02 4:42 
Questionhow to compile win32 program in bcb 5.0 Pin
Johndotcom7-Feb-02 3:03
Johndotcom7-Feb-02 3:03 
AnswerRe: how to compile win32 program in bcb 5.0 Pin
Carlos Antollini7-Feb-02 3:12
Carlos Antollini7-Feb-02 3:12 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Johndotcom7-Feb-02 16:21
Johndotcom7-Feb-02 16:21 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Carlos Antollini8-Feb-02 2:35
Carlos Antollini8-Feb-02 2:35 
GeneralRe: how to compile win32 program in bcb 5.0 Pin
Johndotcom8-Feb-02 18:28
Johndotcom8-Feb-02 18:28 
GeneralCan't find the clrscr() program Pin
Fredrik N7-Feb-02 2:47
Fredrik N7-Feb-02 2:47 
GeneralRe: Can't find the clrscr() program Pin
Carlos Antollini7-Feb-02 3:06
Carlos Antollini7-Feb-02 3:06 

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.