Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC's future Pin
pranavamhari23-Dec-03 18:14
pranavamhari23-Dec-03 18:14 
GeneralRe: MFC's future Pin
Michael P Butler24-Dec-03 2:49
Michael P Butler24-Dec-03 2:49 
QuestionHow could I get back my Save.cpp ? Pin
ljx23-Dec-03 16:42
ljx23-Dec-03 16:42 
AnswerRe: How could I get back my Save.cpp ? Pin
Anonymous23-Dec-03 17:58
Anonymous23-Dec-03 17:58 
GeneralRe: How could I get back my Save.cpp ? Pin
ljx23-Dec-03 18:29
ljx23-Dec-03 18:29 
AnswerRe: How could I get back my Save.cpp ? Pin
Gary R. Wheeler26-Dec-03 5:17
Gary R. Wheeler26-Dec-03 5:17 
GeneralRe: How could I get back my Save.cpp ? Pin
ljx28-Dec-03 13:53
ljx28-Dec-03 13:53 
Generalgetting rid of "Not Responding" window titles Pin
shultas23-Dec-03 16:33
shultas23-Dec-03 16:33 
Hello all.

I am fairly new to programming with Visual C++. I am currently using version 6.0. I have done a lot of work in VB in the past, and am trying to migrate over to VC.

I am wondering if someone can point me in the right direction here. I am just tinkering around at this point. I've got an MFC program, with a listbox. I found some code and modified it for my liking. It's just simple code that searches the c:\ drive for all files and folders. If it finds a folder, it searches that folder too. It adds all of the files/folders to the listbox (m_ListBox.AddString()) is what I'm using. I'm also doing an m_ListBox.UpdateWindow() after each addition to ensure the window shows the contents correctly.

The problem I am running into is that since there are so many files on the C: drive, it takes a long time for the program to find them all. It adds the items very fast to the listbox, but what is happening is it is "locking up" the program (so to speak). Not Responding will show up on the window title, and it does not allow me to go into the listbox and click on the UP/DOWN arrows to scroll through while it is working.

In VB, I would use the function "DoEvents" and that would cause the program to let other things happen meanwhile. I am wondering how I would go about doing this in VC+?

Any pointers or hints or links to some documents that may be able to help me would be very much appreciated.

-Shultas
GeneralRe: getting rid of "Not Responding" window titles Pin
Monty223-Dec-03 17:54
Monty223-Dec-03 17:54 
GeneralRe: getting rid of "Not Responding" window titles Pin
Michael Dunn23-Dec-03 18:09
sitebuilderMichael Dunn23-Dec-03 18:09 
Questioncomposing a bitmap buffer ?? Pin
azusakt23-Dec-03 15:10
azusakt23-Dec-03 15:10 
AnswerRe: composing a bitmap buffer ?? Pin
John R. Shaw23-Dec-03 15:29
John R. Shaw23-Dec-03 15:29 
Questionideas? Pin
hingis_fan23-Dec-03 14:03
hingis_fan23-Dec-03 14:03 
AnswerRe: ideas? Pin
John R. Shaw23-Dec-03 15:12
John R. Shaw23-Dec-03 15:12 
GeneralCWinapp::Run Pin
Anthony988723-Dec-03 13:26
Anthony988723-Dec-03 13:26 
GeneralArray of pointers to a functions Pin
veselin_iordanov23-Dec-03 13:17
veselin_iordanov23-Dec-03 13:17 
GeneralRe: Array of pointers to a functions Pin
Simon.W23-Dec-03 14:13
Simon.W23-Dec-03 14:13 
GeneralRe: Array of pointers to a functions Pin
Michael Dunn23-Dec-03 15:35
sitebuilderMichael Dunn23-Dec-03 15:35 
GeneralRe: Array of pointers to a functions Pin
John R. Shaw23-Dec-03 15:54
John R. Shaw23-Dec-03 15:54 
GeneralRe: Array of pointers to a functions Pin
veselin_iordanov24-Dec-03 8:09
veselin_iordanov24-Dec-03 8:09 
GeneralHooking the taskbar Pin
Rickard Andersson2023-Dec-03 13:08
Rickard Andersson2023-Dec-03 13:08 
GeneralRe: Hooking the taskbar Pin
Ryan Binns23-Dec-03 14:59
Ryan Binns23-Dec-03 14:59 
GeneralRe: Hooking the taskbar Pin
Rickard Andersson2024-Dec-03 0:28
Rickard Andersson2024-Dec-03 0:28 
Questionhow to create shortcut of a file from MFC Pin
Binayak23-Dec-03 12:27
Binayak23-Dec-03 12:27 
AnswerRe: how to create shortcut of a file from MFC Pin
Selvam R24-Dec-03 12:39
professionalSelvam R24-Dec-03 12:39 

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.