Here is one way to do it. You might want to install VC++ 2010 Express or Code::Blocks instead of using Dev-C++.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>And I can't install Visual C++ Express because it requires Windows XP SP3
That's the minimum os. It works great on Windows 7 Home Premium, which I use. What version of MS-Windows are you currently using?
GDI is included in Microsoft Windows SDK which is most likely compatible with all (or most) compilers for MS-Windows operating system.
[edit]Just discovered that the files require MFC, which is not suppported by the Express version of VC++ 2010 nor any non-Microsoft compiler. So this is probably not a library that you can use except to study the source code to find out how to plot charts.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Do you have the VC++ 2005 Professional version? If you have Express then you can forget Gdiplus.dll because it requires MFC as I said in my previous post.
>>2 - I don't understand this one
It means your computer's PATH entironment variable. If you don't know how to change the path, in Windows 7 (maybe Vista too), do this:
Start --> System --> Advanced System Settings --> Environment Variables. That will allow you to change the PATH environment variable. But be careful not to delete anything.
>>3. If you do not have the Pro or better version of the compiler than that will fail and there is no other solution. You are just SOL.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Don't give up. It is easy to do this as long as you stay away from Microsoft products (you are experiencing their tactics of giving away the Express version to sucker people into buying the full version.. just like a pill-pusher).
You said you have Borland... is this Borland C++Builder 5? If it is, all you need to do is click New Project -> VCL Application -> New Form ..something like that. Then you will get a blank Windows' form. Then you can put onto the form a component called TChart that you will find in one of the panels of the component library. Put the TChart on the form, scale it to the size you like, double-click on it and change the settings to customize it. Then click on the form again, see "events" in the object inspector, find the event called "OnShow", double-click in the white space next to it, you will be directed to any empty function called OnShow() and add the code to plot your graph there (to add points, it is something like myChart->AddXYPair(), but I'm not sure). But handing in code that only works for Borland C++Builder and the VCL is probably not the best thing.
Alternatively, you can use SDL with SDL_draw . Which is going to be easy and much better than graphics.h or anything of the like. You can create a window of the size you like and draw whatever your imagination can produce.
If you just need to obtain the graphs.. not necessarily having the C++ code to generate them.. then just save the data to a file with X and Y columns, import it in "MS Excel" and plot the graphs. Or, use "matlab", the exact same way. Or, use "octave" if you want a free software for the same purpose as matlab.
mike_2000_17
Posting Virtuoso
2,134 posts since Jul 2010
Reputation Points: 1,634
Solved Threads: 457