Re: use CreateProcessA in Unicode mode
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 04:06:08 -0400
THis is more than a little weird...I would think it is downright stupid. How do I know
the process I'm launching is or is not a Unicode process? It could be one today and the
other tomorrow, for that matter...
joe
On Fri, 27 Apr 2007 18:22:26 +0900, "Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> wrote:
If you're using Tstrings correctly then you need to take extra care with theJoseph M. Newcomer [MVP]
environment that you create for the subprocess. If your process is running
in ANSI mode and you create an ANSI environment for the subprocess then it
seems that your call is correct. If your process is running in Unicode mode
and you create a Unicode environment for the subprocess then you must
include the CREATE_UNICODE_ENVIRONMENT flag in the sixth parameter.
(A friendlier design would have defaulted this flag to match the calling
process's mode. If the calling process wanted to do the opposite then it
could set either CREATE_UNICODE_ENVIRONMENT or CREATE_ANSI_ENVIRONMENT as
needed. Well, we don't have this design and we don't have
CREATE_ANSI_ENVIRONMENT. Or at least we don't have a documented one.)
"Duy Trinh" <duy.trinh@xxxxxxxxxxx> wrote in message
news:u0DJ3DIiHHA.3452@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,
How to use CreateProcessA in Unicode mode? i am building project in
Unicode mode, so CreateProcessW is used, but have problem on Vista. if i
build project in None-Unicode mode, then CreateProcessA is used, and it
work well on Vista.
So i want to keep my project in Unicode mode, and CreateProcessA is used
in this mode.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: use CreateProcessA in Unicode mode
- From: Tom Serface
- Re: use CreateProcessA in Unicode mode
- References:
- use CreateProcessA in Unicode mode
- From: Duy Trinh
- Re: use CreateProcessA in Unicode mode
- From: Norman Diamond
- use CreateProcessA in Unicode mode
- Prev by Date: Re: use CreateProcessA in Unicode mode
- Next by Date: Re: Making my socket based client - server app internet safe
- Previous by thread: Re: use CreateProcessA in Unicode mode
- Next by thread: Re: use CreateProcessA in Unicode mode
- Index(es):
Relevant Pages
|