Results 1 to 4 of 4

Thread: Ansi.sys and Windows XP issue

  1. #1
    Join Date
    Jun 2009
    Posts
    53

    Ansi.sys and Windows XP issue

    I had previously generated a project in Windows 98 which handles a hardware machine using MS Dos. This has a custom display which requires Ansi.sys to appear correctly. Now I am working under Windows XP. But the problem is that I am unable to get the proper display. Do I need some driver for Ansi.sys to run properly in Windows XP? Because I think this is the main cause of the issue?

  2. #2
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Ansi.sys and Windows XP issue

    By default, ansi.sys is not loaded in Windows XP. You have to explicitly give a command to load it to run. Just add the following command in your code:

    c:\windows\system32\config.nt.
    device=c:\windows\system32\ansi.sys

  3. #3
    Join Date
    Sep 2005
    Posts
    1,306

    Re: Ansi.sys and Windows XP issue

    ANSI.SYS is a real-mode device driver that enables ANSI codes. ANSI.SYS is included with DOS and Windows, so you don't have to download anything.

    1. Use Windows search to find the ANSI.SYS file, usually in C:\Windows\System32.
    2. Open CONFIG.NT using Notepad
    3. Go to the end of the file
    4. Add the below line at the end:

      devicehigh=%SystemRoot%\System32\ansi.sys
    5. Save
    6. Edit your application or codes making sure that the Config filename "CONFIG.NT"

  4. #4
    Join Date
    May 2008
    Posts
    913

    Re: Ansi.sys and Windows XP issue

    You can create a new config file %systemroot%\system32\ansi.nt by adding the following commands:

    dosonly
    device=%systemroot%\system32\ansi.sys
    device=%SystemRoot%\system32\himem.sys
    files=40
    dos=high,umb
    Finally save this file somewhere on your hard disk and change the Config filename from the default to %systemroot%\system32\ansi.nt.

Similar Threads

  1. How to use ANSI.SYS in Windows 7
    By NamJam in forum Operating Systems
    Replies: 3
    Last Post: 23-12-2010, 07:22 AM
  2. Replies: 1
    Last Post: 16-07-2010, 12:27 PM
  3. Replies: 4
    Last Post: 01-12-2009, 10:54 AM
  4. Join SQL Traditional or ANSI
    By Deep23 in forum Software Development
    Replies: 2
    Last Post: 23-04-2009, 12:07 AM
  5. Convert UTF-8 to ANSI
    By DotNetUser in forum Software Development
    Replies: 2
    Last Post: 04-04-2009, 10:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,537,853.93086 seconds with 17 queries