Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to pass text file data from MFC line Graph?

How to pass text file data from MFC line Graph?

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structureshelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mathivanaan
    wrote on last edited by
    #1

    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

    R C 2 Replies Last reply
    0
    • M mathivanaan

      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

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • M mathivanaan

        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

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        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++

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups