Solved

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

Posted on 2011-02-13
1
292 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 32

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL 2012 Syntax Error 5 25
SQL Restore Script - Syntax Error 8 76
SQL Help - 12 42
Authentication error 1 0
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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.

744 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

16 Experts available now in Live!

Get 1:1 Help Now