read the information continuously and display in VC++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I have a doubt in VC++ regarding file reading and displaying in the GUI (Dialog

I have a binary file, which contains several piece of information , i have to read the information continuously from the file and continue to display the information in the GUI, i have created a GUI , using dialog based and having a list box in that dialog,

After reading a part of information i have to display in GUI, and again i have to keep on reading the file till the end and want to display the information in th GUI, but the problem i am facing is when i display a set of infromation from binary file to GUI, the other set of information i am not able to display in the GUI, till the close the Dialog (GUI).

The control never goes to read file again when the dialog appears, i tried using thread.., 2 thread one to read the file and one to display the dialog, this is not working .,

can u plz! sugget me how i can do this and wht is the way in VC++ to do this.

thanx and regard
nandhu
 
Hi
You can probably make the file a memory mapped file. By this you are making the file a part of your process VM. See documentation for the functions CreateFileMapping and MapViewOfFile. This should give you a good idea on how to do this

Balaji
 
Back
Top