?
Solved

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

Posted on 2011-02-13
1
Medium Priority
?
299 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 35

Accepted Solution

by:
sarabande earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

762 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