Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
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 how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

604 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