
November 8th, 2002, 01:01 PM
|
|
Contributing User
|
|
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:
Code:
HINSTANCE ShellExecute(
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
);
[edit]
the only thing that was unclear to me first was "lpOperation" which should be "open"
[/edit]
Last edited by M.Hirsch : November 8th, 2002 at 01:10 PM.
|