Knowledge Base

PRB: Screen Turns Black & Returns as Start Visual FoxPro or Exe

Article ID: 138658

Article Last Modified on 2/10/2000


APPLIES TO


This article was previously published under Q138658

SYMPTOMS

When you start Visual FoxPro or a Visual FoxPro application executable (.exe) file on a 16-bit operating system, the screen flashes black, as if going to an MS-DOS session, and then it returns to Windows without starting Visual FoxPro or the application. Or you receive this error message:
This program cannot be run in DOS mode.

CAUSE

The Win32s subsystem is missing or is not properly installed. On 16-bit Windows platforms, such as Windows 3.1 or Windows for WorkGroups 3.11, the Win32s subsystem in necessary for Visual FoxPro and Visual FoxPro application .exe files to run.

RESOLUTION

If Visual FoxPro won't start, you need to reinstall the Win32s subsystem. For more information about how to reinstall the Win32s subsystem, please see the following article in the Microsoft Knowledge Base:

129979 How to Reinstall Win32s with Visual FoxPro

If a Visual FoxPro application .exe file won't start, use one of the following two possible resolutions:

NOTE: Windows 95 and Windows NT are 32-bit operating systems and do not require the Win32s subsystem.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Build a Visual FoxPro executable (.exe) file.
  2. Place the .exe file and Vfp300.esl files onto a computer running a 16-bit version of Windows that does not have a version of Win32s installed.
  3. Attempt to run the executable.

Additional query words: VFoxWin

Keywords: KB138658