Click here to Skip to main content
15,889,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Working with CFile!!!! Pin
Rajesh R Subramanian28-Jan-08 22:51
professionalRajesh R Subramanian28-Jan-08 22:51 
QuestionProblem in AfxBeginThread Pin
gReaen28-Jan-08 21:35
gReaen28-Jan-08 21:35 
GeneralRe: Problem in AfxBeginThread Pin
Cedric Moonen28-Jan-08 22:01
Cedric Moonen28-Jan-08 22:01 
GeneralRe: Problem in AfxBeginThread Pin
Iain Clarke, Warrior Programmer28-Jan-08 22:34
Iain Clarke, Warrior Programmer28-Jan-08 22:34 
GeneralRe: Problem in AfxBeginThread Pin
gReaen28-Jan-08 23:11
gReaen28-Jan-08 23:11 
GeneralPlot graph using MFC Pin
Kennis28-Jan-08 21:34
Kennis28-Jan-08 21:34 
GeneralRe: Plot graph using MFC Pin
Cedric Moonen28-Jan-08 21:44
Cedric Moonen28-Jan-08 21:44 
GeneralRe: Plot graph using MFC Pin
Maxwell Chen28-Jan-08 21:48
Maxwell Chen28-Jan-08 21:48 
Kennis wrote:
I have a simple program which plot graph using CPoint. However CPoint can only store integer.


To implement your own struct (or class) to replace CPoint, such as:
struct FPoint {
  float x;
  float y;
};<pre>


<blockquote class="FQ"><div class="FQA">Kennis wrote:</div>The graph size is 150 x 550 but I have over a million points to plot. Any idea?</blockquote>

To store all the <code>FPoint</code> objects in a container (such as <code>std::list</code>), and sort it to find out the maximal and minimal values to get the range, in order to normalize it or to shrink it with a multiplier to fit your scale (150 x 550). 

<div class="ForumSig">  Maxwell Chen</div>

GeneralOops! Pin
Maxwell Chen28-Jan-08 21:52
Maxwell Chen28-Jan-08 21:52 
QuestionRe: Plot graph using MFC Pin
CPallini28-Jan-08 22:50
mveCPallini28-Jan-08 22:50 
GeneralRe: Plot graph using MFC Pin
Iain Clarke, Warrior Programmer28-Jan-08 23:07
Iain Clarke, Warrior Programmer28-Jan-08 23:07 
GeneralRe: Plot graph using MFC Pin
Maxwell Chen28-Jan-08 23:10
Maxwell Chen28-Jan-08 23:10 
QuestionRe: Plot graph using MFC Pin
Mark Salsbery29-Jan-08 5:57
Mark Salsbery29-Jan-08 5:57 
GeneralRe: Plot graph using MFC Pin
Kennis29-Jan-08 16:24
Kennis29-Jan-08 16:24 
GeneralRe: Plot graph using MFC Pin
Mark Salsbery30-Jan-08 5:08
Mark Salsbery30-Jan-08 5:08 
QuestionRe: Plot graph using MFC Pin
Mark Salsbery30-Jan-08 5:15
Mark Salsbery30-Jan-08 5:15 
GeneralRe: Plot graph using MFC Pin
Kennis30-Jan-08 15:06
Kennis30-Jan-08 15:06 
Questioncould anyone tell me what's the error with this code? Pin
ashwiny28-Jan-08 20:14
ashwiny28-Jan-08 20:14 
AnswerRe: could anyone tell me what's the error with this code? Pin
Stephen Hewitt28-Jan-08 20:15
Stephen Hewitt28-Jan-08 20:15 
AnswerRe: could anyone tell me what's the error with this code? Pin
Hamid_RT28-Jan-08 20:43
Hamid_RT28-Jan-08 20:43 
AnswerRe: could anyone tell me what's the error with this code? Pin
CPallini28-Jan-08 21:27
mveCPallini28-Jan-08 21:27 
GeneralRe: could anyone tell me what's the error with this code? Pin
Maxwell Chen28-Jan-08 21:33
Maxwell Chen28-Jan-08 21:33 
GeneralRe: could anyone tell me what's the error with this code? Pin
CPallini28-Jan-08 22:35
mveCPallini28-Jan-08 22:35 
GeneralRe: could anyone tell me what's the error with this code? Pin
Iain Clarke, Warrior Programmer28-Jan-08 22:36
Iain Clarke, Warrior Programmer28-Jan-08 22:36 
JokeRe: could anyone tell me what's the error with this code? Pin
CPallini28-Jan-08 23:03
mveCPallini28-Jan-08 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.