pgmerLA
asked on
Initializing GDI++ in MFC/ATL application
sort of project: win32
using MS VS 2008 on MS XP.
I have attached sample data.
Lets use the closing price and date for the price chart.
and for the histogram: upvolume should be above the line and the down volume should be below the line.
Thanks again.
OCENY.txt
using MS VS 2008 on MS XP.
I have attached sample data.
Lets use the closing price and date for the price chart.
and for the histogram: upvolume should be above the line and the down volume should be below the line.
Thanks again.
OCENY.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ASKER
Is there a way to contact directly trough the site withoutposting through the comment box?
Also, I gave you the highest rating I could, but it rated at 9.2
Also, I gave you the highest rating I could, but it rated at 9.2
Visual c++ => Win32 => Win32 Project
Lets call the project GDIGraph so that we are on the same page here...
Now we need to add the required headers and libraries for the GDI plus :
Find you main file GDIGraph.cpp and add the following at the top of the file right after the #include lines:
Open in new window
Now if you will try to compile the project at this point (try it) you will get a bunch of errors... To get rid of them, open the file stdafx.h , find the line that says:
Open in new window
and comment it. Now you should be able to compile the project.Now lets add the GDI initialization staff.
Back to the GDIGraph.cpp file, find the line that says
Open in new window
This is where we will define our global variables as well...Add the following two line to define GDI plus token and input:
Open in new window
Now find the InitInstance function and add BEFORE ShowWindow the following:Now find the _tWinMain function and add at the end of the function BEFORE return (int) msg.wParam; the following:
Open in new window
Now compile everything and if there are no errors then we are done with this step and we have working application with GDIplus support.Attached is the final image of this step.