Solved

How to draw a 2 line chart with c++ MS VS from an SQL table

Posted on 2011-02-13
1
293 Views
Last Modified: 2012-05-11
I am a beginner programmer. We haven't done OO yet in class. We stopped at functions and arrays.(c++)
I have an sql table, with time, and 2 different columns, that stands for 2 different variables.
I would like to draw those 2 lines in a chart with time as the x axis. (just like in excel)
It should be c++ in MS VS. and MS SQL server.

please keep it as simple as possible.
thanks!
0
Comment
Question by:pgmerLA
1 Comment
 
LVL 33

Accepted Solution

by:
sarabande earned 500 total points
ID: 34886266
you could make a CRecordView based mfc application (SDI) where you draw the chart by basic functions into a device context (dc).

if you are a beginner with mfc you should do a tutorial like scribble and get you a recordview based sample from the sample projects provided with visual studio.

Regards
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now