Manually configure Easyx header files and library files into vs2010

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.