![]() |
|
#1
|
|||
|
|||
Interface for opening and displaying text fileHi all,
I need to create an interface consists of a menu, a form which contains two edit/richedit box . I want to use the interface in dealing with opening and displaying text files and binary files. My data in the binary file(number.bin) looks as following: 000000000000000000000000 000000000000000000000000 000000000001111000000000 000000000111000111000000 000000000110000110000000 000000000110000110000000 000000000111000110000000 000000000011000110000000 000000000011101100000000 000000000001111000000000 000000000000000000000000 000000000000000000000000 I want to open a binary file using the menu item, File->Open File. Then I want to read the data content the of the binary file into an array of integer and displays the data the first rich edit/edit box in the form. Then I use the menu item, Manipulation-> Change Data to do some manipulation to the data,i.e, convert the "1" in the data into "2". After I click the Change Data menu item, I want to display the latest value of data after manipulation in the second rich edit/edit box. My new data will looks like this: 000000000000000000000000 000000000000000000000000 000000000002222000000000 000000000222000222000000 000000000220000220000000 000000000220000220000000 000000000220002220000000 000000000022000220000000 000000000022202200000000 000000000002222000000000 000000000000000000000000 000000000000000000000000 Currently, I'm using the MFC wizard to create the interface but I have no idea on how to make the menu, button,rich edit box works as above. I've prepared the coding for the data manipulation using C language. Is it possible to link the MFC coding with the C coding for the data manipulation? Is there any links or examples of programs that can show me the step by step guide to do the above operation? Thanks in advance |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| Need Help in displaying file contents. | bhullar_v | C Programming Language | 16 | 26-Sep-2005 08:21 |
| opening files and displaying text | pin215 | C++ Forum | 7 | 21-Feb-2004 21:27 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The