GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 29-Sep-2005, 02:34
ladyscarlet99 ladyscarlet99 is offline
New Member
 
Join Date: Sep 2005
Posts: 3
ladyscarlet99 is on a distinguished road
Unhappy

Interface for opening and displaying text file


Hi 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 GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 17:48.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.