<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Delphi/Pacal DOS program in Windows 2000' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Delphi/Pacal DOS program in Windows 2000' posted on the 'MS-DOS' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 11:43:23 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 11:43:23 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Delphi/Pacal DOS program in Windows 2000</title>
      <link>http://www.programmersheaven.com/mb/MS-DOS/108070/108070/delphipacal-dos-program-in-windows-2000/</link>
      <description>I have been given the task of figuring out how to get a DOS based program compiled in either Delphi or Borland/Turbo Pascal (no source available) to run in Windows 2000.&lt;br /&gt;
&lt;br /&gt;
It is supposed to run in Windows 9x/98's "DOS Mode" using the following instructions...&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
The Windows 95/98 must be completely shut down before running the S/W. Choose one of the selections below:&lt;br /&gt;
&lt;br /&gt;
- Press &lt;strong&gt;START&lt;/strong&gt;&lt;br /&gt;
- Press &lt;strong&gt;Shut Down...&lt;/strong&gt;&lt;br /&gt;
- Press &lt;strong&gt;Restart in MS-DOS mode&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Press F8 during the boot-up and choose command prompt only (which is similar to DOS)&lt;br /&gt;
&lt;br /&gt;
Change the line in MSDOS.SYS containing BootGUI=1 to BootGUI=0&lt;br /&gt;
This will result in the computer automatically starting in DOS. Use WIN to start Windows 95/98. (Use the ATTRIB -h -s -r MSDOS.SYS to change MSDOS.SYS from a hidden and read-only file to a file that you can edit. Use ATTRIB +h +r +s MSDOS.SYS to change it back to a hidden and read-only file.)&lt;br /&gt;
&lt;br /&gt;
Example of AUTOEXEC.BAT and CONFIG.SYS under Windows 95/98:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;AUTOEXEC.BAT&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;C:\WINDOWS\CpqSntsr.com
@ECHO OFF
set path=C:\;C:\WINDOWS;C:\NQ
mode con codepage prepare=[(850) c:\windows\COMMAND\ega.cpi]
mode con codepage select=850
keyb dk,,c:\windows\COMMAND\keyboard.sys
cls&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;CONFIG.SYS&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE RAM
device=c:\windows\COMMAND\display.sys con=(ega,,1)
Country=044,850,c:\windows\COMMAND\country.sys&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
NOTE: I typed all of this in from a bad FAX. Hopefully there are not too many errors.&lt;br /&gt;
&lt;br /&gt;
When I try to run the program in a "normal" prompt window I get the following messages...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;EMS driver not installed.
XXX-XX S/W  Version &amp;lt;Ver Tst9&amp;gt;  Copyright (c) 2001 XXXXXXXXX, Denmark
BGI Error: Graphics not initialized (use InitGraph)
BGI Error: Graphics not initialized (use InitGraph)&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I "get" the EMS error as the Windows 2000 command prompt shortcut does not allow me to set up EMS. I have done this with a PIF file for the application (as I have had to do with out TurboPascal/DOS apps we have gotten running) but this doesn't seem to help.&lt;br /&gt;
&lt;br /&gt;
I have tried to use the "Compatability-Mode Technology" describe in Microsoft artice Q279792 (http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q279792) but it does not put a Compatibility tab on the DOS program shortcuts. It does put one on the "Command Prompt" shortcut and I have turned on "Windows 95 Compatibility" but I cannot configure EMM on the Command Prompt shortcut so this doesn't work either.&lt;br /&gt;
&lt;br /&gt;
Assuming somebody has a suggestion for this my other problem is the BGI error. Our "other" TP programs throw a similar error when the egavga.bgi file is not in the same directory as the app. With this app there is a svg16.bgi file but it's mere presence doesn't seem to work.&lt;br /&gt;
&lt;br /&gt;
I've tried configuring copies of Autoexec.nt and Config.nt similar to the "directions", hopefully enabling EMM, however these are rejected by the OS when I try to start the app using this shortcut.&lt;br /&gt;
&lt;br /&gt;
Any suggestions would be greatly appreciated.&lt;br /&gt;
&lt;br /&gt;
Thank you all.&lt;br /&gt;
&lt;br /&gt;
Trevor Cooper&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/MS-DOS/108070/108070/delphipacal-dos-program-in-windows-2000/</guid>
      <pubDate>Thu, 28 Mar 2002 12:08:50 -0700</pubDate>
      <category>MS-DOS</category>
    </item>
  </channel>
</rss>