PRB: CreateProcess() of Windows-Based Application FailsLast reviewed: September 25, 1995Article ID: Q127860 |
The information in this article applies to:
SYMPTOMSWhen you spawn a 16-bit Windows-based application using CreateProcess() where neither lpApplicationName and lpCommandLine are NULL, WOW gives a popup saying:
Cannot find file (or one of its components). Check to ensure the path and filename are correct and that all required libraries are available. CAUSENTVDM expects the first token in the command line (lpCommandLine) to be the program name, although the Win32 subsystem does not. The current design will not be changed.
RESOLUTIONMake lpApplicationName NULL and put the full command line in lpCommandLine.
STATUSThis behavior is by design.
MORE INFORMATIONThe documentation for CreateProcess() states:
If the process to be created is an MS-DOS-based or Windows-based application, lpCommandLine should be a full command line in which the first element is the application name.In this case (lpApplicationName is not NULL), lpCommandLine not only should be a full command line, but it must be a full command line.
|
Additional reference words: 3.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |