Sujet : Re: Running an editor from ANSI C
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 09. Jun 2024, 08:29:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v43ll8$39uge$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Pan/0.158 (Avdiivka; )
On Fri, 7 Jun 2024 14:24:29 +0300, Michael S wrote:
ShellExecute(NULL, "edit", filename, NULL, NULL, SW_NORMAL);
Would help to have some light shed on what the arguments mean
<
https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea>:
From which I get
ShellExecute
(
/*hwnd =*/ NULL,
/*lpOperation =*/ "edit",
/*lpFile =*/ filename,
/*lpParameters =*/ NULL,
/*lpDirectory =*/ NULL,
/*nShowCmd =*/ SW_NORMAL
);
which makes things a bit clearer, doesn’t it? By the way, I love the
explanation of what the returned value means ... an HINSTANCE which is
not an HINSTANCE ...