How to pass text file data from MFC line Graph?
-
Hi, i am beginner of vc++ MFC. I don't know MFC with graph development. I have one text file. It contain one by one inter values like
44
-12
80
32
66
-99
.
.
.I try MFC dialog use draw x and y axis.(only background based on dialog box width and height). when i press button read the text file and draw a line graph. pls help me. Any idea or sample code pls share with me. Regards, M.Mathivanan
-
Hi, i am beginner of vc++ MFC. I don't know MFC with graph development. I have one text file. It contain one by one inter values like
44
-12
80
32
66
-99
.
.
.I try MFC dialog use draw x and y axis.(only background based on dialog box width and height). when i press button read the text file and draw a line graph. pls help me. Any idea or sample code pls share with me. Regards, M.Mathivanan
Read the file with CStdioFile[^] and then, well, plot the graph. I presume you're using some kind of graph control?
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
-
Hi, i am beginner of vc++ MFC. I don't know MFC with graph development. I have one text file. It contain one by one inter values like
44
-12
80
32
66
-99
.
.
.I try MFC dialog use draw x and y axis.(only background based on dialog box width and height). when i press button read the text file and draw a line graph. pls help me. Any idea or sample code pls share with me. Regards, M.Mathivanan
mathivanaan wrote:
I try MFC dialog use draw x and y axis.(only background based on dialog box width and height).
Your question is not really clear: are you drawing the chart yourself ? If yes, I suggest you use an existing chart control: there are some articles about chart controls on codeproject, and you can have a look at my sig for a link to a chart control I developed.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++