want ansi.sys loaded in the IDE when debugging

B

Beemer Biker

I have a C++ program (console shell) that runs on a linux system (bash) and
on win32. Ansi escape code work fine for cursor positioning on bash. I
dont have ansi.sys loaded in XP PRO (or win2k). Is there a way to do it in
the debugger or the IDE?

I added device=%SystemRoot%\system32\ansi.sys in config.nt but it didnt
help. I thought this would have worked.

From the cmd prompt "mem /C" does not show ansi.sys loaded, nor even himem
which was already in config.nt before I added the ansi.sys

I only want to run this program on win32 from the debugger ie: hitting F5.
It is much easier to debug in VC7.1 then using gdb. ie: I am not running
the .exe under emulation mode. It only runs on my PCs (Xp or Win2k) when I
am debugging.

...TIA..



--
=======================================================================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================
 
J

J. Clarke

Beemer said:
I have a C++ program (console shell) that runs on a linux system (bash)
and
on win32. Ansi escape code work fine for cursor positioning on bash. I
dont have ansi.sys loaded in XP PRO (or win2k). Is there a way to do it
in the debugger or the IDE?

I added device=%SystemRoot%\system32\ansi.sys in config.nt but it didnt
help. I thought this would have worked.

From the cmd prompt "mem /C" does not show ansi.sys loaded, nor even
himem
which was already in config.nt before I added the ansi.sys

I only want to run this program on win32 from the debugger ie: hitting F5.
It is much easier to debug in VC7.1 then using gdb. ie: I am not running
the .exe under emulation mode. It only runs on my PCs (Xp or Win2k) when
I am debugging.

Repeat this mantra "XP is not DOS".

Win32 does not support DOS device drivers. You can use ANSI.SYS for 16-bit
code running under command.com, you can't use it for win32 code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top