Mail Archives: djgpp/1999/12/30/04:55:03
On Wed, 29 Dec 1999, Edward F. Sowell wrote:
> Now, with your lfn it works at the command line in a DOS box in which I have
> run lfnload (Hurray!), but fails when launched with CreateProcess()
> from within the Windows application.
This is expected. CreateProcess creates a separate Virtual Machine
and runs the program inside that VM. You need to arrange for the LFN
driver to be loaded in that VM as well.
> But,
> merely doing another CreateProcess("lfnlaod"), so to speak, will not work
> because it's a separate process.
Try creating a batch file which loads the LFN driver and then runs
your *real* application. Then launch that batch file by calling
CreateProcess to run it via cmd.exe.
- Raw text -