Sometimes, to setup environment to use metapost may take a lot of time. With this post, to set up TeXnicCenter to develop metapost figure should take no time.
First of all, we should have MikTex and TeXnicCenter correctly installed. If you don't have that, here is a guide. Then, we can configrue TeXnicCenter for using metapost. Here is a video to show how to configure metapost for TeXnicCenter.
Video (Available in 1080p high quality)
The video also shows how to compile a meta post and then use it in latex file. The example simply draw a line, and the output looks like the following:
Hello World! \n
draw (100, 100)--(350, 275);
filenametemplate let the .mp generate mps file, then mps file is used in the latex file.
<pre><code> String foo = "bar"; </code></pre>