Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
i have a MFC project where now data generate as a txt file. there are two column in text file. first column will be x axis and second column will be y axis. i want to visualize that. so i have make a visualize button in my previous dialog box, then when i click that the dialog box now apears, i need to know now how i will read my txt file which generated and then how i will plot that, plz emergency ans kinldy
Posted

This is essentially the same question as you posted here[^]. If you do not understand the basics of reading information from a file and plotting points, drawing lines, on an output device then you need to go back to your study guides and programming tutorials and spend some time getting familiar with these aspects of development.
 
Share this answer
 
Comments
Mohammad Sharif Hossain 5-Sep-12 6:15am    
kindly give me the link from where i will get such tutorial ,since i am new in MFC, i know c programming
Richard MacCutchan 5-Sep-12 8:26am    
Try a bit of research for yourself, it really is not that difficult.
Mohammad Sharif Hossain 5-Sep-12 8:33am    
i am not understanding because of this i am asking, u all telling go back previous study , then do yourself, if i know i do , why u replying here,
do not need ur worthless reply,disgusting
Richard MacCutchan 5-Sep-12 9:01am    
If you actually made an effort to do some study for yourself and came back with specific questions then people would be more than willing to help you. But you are asking for a complete solution without being prepared to even try to learn the subject for yourself. I already suggested that you should try your study guides, maybe learn how to read data from a file and construct an array of points, which will then allow you to draw some lines on your output device. The CFile class will help you read the data, and the Windows GDI or GDI+ functions will help you draw the lines.

Perhaps a change of attitude will get you better answers in the future.
Mohammad Sharif Hossain 5-Sep-12 9:21am    
thanks for ur nice reply now
Read the data in the opposite way you have written them into arrays (type of arrays depends on the used visualization implementation).

There are many articles here on CodeProject about graphical visualization of 2D data. Use the search function[^].

One of my favorites is the High-speed Charting Control[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900