我看了下,网上说graphics.h这个是TC专有的
一个是http://www.rupeng.com/forum/thread-12260-1-1.html这里说的添加方法,我试了不行
还有就是安装EasyX最新的库,安装了也不行,字符也调整为unicode都不行
运行下面的程序,显示未
错误 70 error LNK2001: 无法解析的外部符号 __imp__GetCurrentObject@8 G:\Programming\Visual Studio 2010\Projects\C\Test\graphicsw.lib(EasyX.DrawOnImg.obj)
错误 47 error LNK2019: 无法解析的外部符号 __imp__CreateBitmap@20,该符号在函数 "public: virtual void __thiscall EasyX::DrawOnWnd::setfillstyle(unsigned long,int,char const *)" (?setfillstyle@DrawOnWnd@EasyX@@UAEXKHPBD@Z) 中被引用 G:\Programming\Visual Studio 2010\Projects\C\Test\graphicsw.lib(EasyX.DrawOnWnd.obj)
请问有高手知道怎么解决吗???别说用什么其他的GDI什么的
#include<graphics.h>
#include <conio.h>
main()
{
int i,j;
initgraph(640,480);
for(i=120;i<=400;i=i+20)
{
for(i=120;i<=400;i=i+20)
{
putpixel(i,j,2);
putpixel(j,i,2);
}
}
getch();
closegraph();
}