16 bit ms dos ,the NTVDM CPU has encoutered an illegal instruction.

none2null 2008-04-02 11:41:34
在xp下用的是TC2.0在其他电脑上正常运行,但在我的电脑上能编译通过,但无法运行,该如何解决?谢谢
#include <graphics.h>
void main()
{
int gdriver = DETECT, gmode;
initgraph( &gdriver, &gmode, "D:\\TC\\BGI");
bar(1,1,50,50);
getch();
closegraph();
}
运行弹出出对话
...全文
1179 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
默默莹 2009-12-02
  • 打赏
  • 举报
回复
知道的朋友们指条明路吧~~
默默莹 2009-12-02
  • 打赏
  • 举报
回复
lz,我也是同样的问题,只不过是TC3.0罢了……这个问题现在解决了吗?
meiZiNick 2008-05-01
  • 打赏
  • 举报
回复
lz要干嘛?
alwaysLonely 2008-04-02
  • 打赏
  • 举报
回复
NTVDM cpu遇到了一个无效的指令.

是不是你包含的库里有16位时代的操作CPU的命令,但是现在没有了或者受限了?

用TC用的比较少,只是个想法,希望能帮上忙...好象是可以通过修改计算机配置解决的
none2null 2008-04-02
  • 打赏
  • 举报
回复
有人知道咋回事呢?
可以读写Ext2,以Ext2方式挂载Ext3文件系统(不支持Ext3日志),不支持中文! It provides Windows NT4.0/2000/XP/2003/Vista/2008 with full access to Linux Ext2 volumes (read access andwrite access). This may be useful if you have installed both Windows and Linux as a dual boot environment on your computer. What features are supported? Complete reading and writing access to files and directories of volumes with theExt2 orExt3 file system. Supports features which are specific to the I/O-system of Windows: Byte Range Locks, Directory Notfication (so the Explorer updates the view of a directory on changes within that directory), Oplocks (so SMB clients are able to cache the content of files). Allows Windows to run with paging files on Ext2 volumes. UTF-8 encoded file names are supported. The driver treats files with file names that start with a dot "." character ashidden. Supports GPT disks if the Windows version used also does. Supports use of the Windows mountvol utility to create or delete drive letters for Ext2 volumes (except on Windows NT 4.0). See also section"Can drive letters also be configured from scripts?". What features are *not* supported? Inodes that are larger than 128 bytes are not supported. Access rights are not maintained. All users can access all the directories and files of an Ext2 volume. If a new file or directory is created, it inherits all the permissions, the GID and the UID from the directory where it has been created. There is one exception to this rule: a file (but not a directory) the driver has created always has cleared "x" permissions, it inherits the "r" and the "w" permissions only. See also section"What limitations arise from not maintaining access rights?". The driver does not allow accessing special files at Ext2 volumes, the access will be always denied. (Special files are sockets, soft links, block devices, character devices and pipes.) Alternate 8.3-DOS names are not supported (just because there is no place to store them in an Ext2 file system). This can prevent legacy DOS applications, executed by the NTVDM of Windows, from accessing some files or directories. Currently the driver does not implement defragging support. So defragmentation applications will neither show fragmentation information nor defragment any Ext2 volume. This software does not achieve booting a Windows operating system from an Ext2 volume. LVM volumes are not supported, so it is not possible to access them.

24,857

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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