Tech Support > Microsoft Windows > Development Resources > No window on XP ??
No window on XP ??
Posted by cnlai on December 31st, 2003


I use VB to create user forms. After collecting user inputs, the data is
passed onto a program written in C (invoked by the API CreateProcess).

The C program displays a dialog box showing the progress (copying
files). Towards the end, the program asks whether user wants to read a
text file.

If yes, the program calls "CreateProcess" to start an independent
process (notepad.exe). But the notepad window is not shown.

If I run the C program by supplying the correct argument, notepad window
is displayed (no problem on win98/95).

Can someone tell me why ?

Note. In the calling program written in VB, I indicate that child window
can inherit parent handles, but the security descriptor is NULL.

Thanks.