Manually configure Easyx header files and library files into vs2010
Easyx is a relatively lightweight and simple graphics library, installation Easyx is also very simple, EASYX official website also has detailed introduction
But some friends may not want to install, also can, we directly easyx downloaded files in the header files and library files to the VS2010 installation directory.
Download Easyx First, and you can see these files when you open them:
Then open the VS2010 installation directory, as follows:
Here, select the VC directory, you can see:
Copy the easyx.h and graphics.h files in the Include folder in the Easyx to VC's include to copy Lib/amd64 and Easyx.lib in Easyxw.lib in Easyx to the AMD64 folder under VC Similarly, the Lib in the Easyx four library files copied to the VC under the Lib
OK, with these files, after the copy succeeds, create an example in VS to test for success
#include <graphics.h> //This references the Easyx graphics library
#include <conio.h>
void Main ()
{
initgraph ( 640, he); There is a slight difference here and TC
Circle (MB, m); Draw Circle, center (100, 100), Radius
_getch (); Press any key to continue
closegraph (); Close the graphical interface
}
Here I use the official example, the test pass, so we can use this graphics library to do some of the gadgets we need.