tc已生成exe文件,但......

lwzh 2000-06-18 11:18:00
when I execute the exe file ,the computer display:
can't initilize the graphics.h,please use initgragh command.
but I have use the command in the source code
int gdriver=DETECT,gmode;
initgraph(&gdrever,&mode,"c:\\tc");
...全文
437 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangwenchao 2001-02-04
  • 打赏
  • 举报
回复
qutemouse朋友说的对
online2000 2000-09-26
  • 打赏
  • 举报
回复
若用640*480,16色:
...
int gdriver=VGA,gmode=VGAHI;
...
hadrons 2000-08-24
  • 打赏
  • 举报
回复
far point??
qutemouse 2000-06-30
  • 打赏
  • 举报
回复
sorry!
int gdriver,gmode;
...
registerbgidriver(EGAVGA_driver);
initgraph(&gdriver,&gmode,"");
...
feng 2000-06-26
  • 打赏
  • 举报
回复
gmode,&mode??
qutemouse 2000-06-23
  • 打赏
  • 举报
回复
先在命令行方式下在TC的目录下执行BGIOBJ egavga(Return)然后TLIB LIB/GRAPHICS.LIB+EGAVGA.OBJ
然后在程序中写以下两行语句:
registerbgidriver(EGAVGA_driver);
initgraph(&gdrive,&gmode"");
你就可以脱离EGAVGA.BGI了
halfdream 2000-06-18
  • 打赏
  • 举报
回复
它没有找到相应的BGI文件。
initgraph(&gdrever,&mode,"c:\\tc");
看看在C:\tc下有没有扩展名为BGI的文件。
要不然,把EGAVGA。BGI之类的文件拷到执行文件目录,
然后改成
initgraph(&gdrever,&mode,"");
w102272 2000-06-18
  • 打赏
  • 举报
回复
copy *.drv(like egavga.drv....) files to your exe directory.

anlun 2000-06-18
  • 打赏
  • 举报
回复
以下2种方法可不用BGI文件:
1.在源程序加入1个函数(由于未用TC很长时间忘啦,抱歉)实现将显示驱动文件封装入EXE文件,可查阅graphic.h头文件。
2.用bgiobj.exe 将BGI文件转为obj文件,再将该obj文件连入graphic.lib文件重编译生成EXE文件。
anlun 2000-06-18
  • 打赏
  • 举报
回复
以下2种方法可不用文件:
1.将显示驱动文件通过1个函数(由于未用TC很长时间忘啦,抱歉)封装入文件,可查阅graphic.h头文件。
2.用bgiobj.exe 将BGI文件转为obj文件,再将该obj文件连入graphic.lib文件重编译生成EXE文件。

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧