如何在VC ++ MFC基于对话框的应用程序中绘制2D Graph

问题描述:

我有一个应用程序,我必须对来自硬件的一些数据实时绘制一个正弦波。我正在使用基于VC ++ MFC Dialog的应用程序。请帮助我。

在此先感谢

I have an application in which I have to plot one sine wave with respect to some data came from an hardware in real time.I am using VC++ MFC Dialog based application.Please help me.
Thanks in advance

您使用的是过时的技术,C#更易于使用。



有许多图形库。然而,现在,人们倾向于用C#写东西,你会找一些相当旧的东西,我想。不过,你基本上要求我们为你做这项工作。你应该能够做到这一点,你需要学习如何在你的表单上绘制(这在你的绘图事件中发生),然后你需要编写代码来绘制你的图形,就这么简单。
You're using pretty out dated technology, C# is easier to use.

There's any number of graphing libraries. However, nowadays, people tend to write stuff in C#, you'd be looking for something pretty old, I reckon. You're basically asking us to do the work for you, though. You should be able to do this, you need to learn how to draw on your form ( which happens in your paint event ), and then you need to write the code to draw your graph, it's that simple.