November 8th, 2002, 02:01 PM
Join Date: Oct 2000
Location: Back in the real world.
you can use the imho easier function ShellExecute from shell32.dll.
the syntax (from the MS Windows SDK) is:
HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
the only thing that was unclear to me first was "lpOperation" which should be "open"
Last edited by M.Hirsch : November 8th, 2002 at 02:10 PM.