By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,002 Members | 2,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,002 IT Pros & Developers. It's quick & easy.

read the information continuously and display in VC++

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 17 '05 #2

P: n/a
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
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.