Solved

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

Posted on 2011-02-13
1
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 34

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

756 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