Re: CreateProcess in a loop
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 22 Aug 2007 11:22:51 -0400
My style is my style; not everyone agrees with it. I am not as extreme as C++ purists
would like, and I'm more extreme than a lot of MFC example code. And in some cases my
code is completely idiosyncratic to me.
Sometimes I worry that the MFC example code is not the best-of-the-best. In extreme
cases, it is actually among the worst code I've seen, although those don't happen very
often. The problem is that sometimes they want to write an example in the fewest possible
lines, but the consequence is that the resulting code doesn't resemble anything a real
programmer would write.
char is old and respected, but it is old and respected like a long-retired University
professor. At one time char was important and represented state-of-the-art, but its
relevance for representing strings in modern programming is questionable. At one time we
had a lot of professors who were among the world's experts on vacuum tubes, but really
weren't up to these newfangled transistors. Nonetheless, they were still teaching, and I
have a friend who took his entire RF Theory and Practice course using vacuum tubes in
1979. char is used in very restricted contexts these days, or should be.
joe
On Wed, 22 Aug 2007 05:48:33 -0700, one-trick-pony <worldofpain.aamir@xxxxxxxxx> wrote:
Excellent. I look at book (and MSDN website) and see one andJoseph M. Newcomer [MVP]
sometimes 2 variations of code being used. You expose me to other
ideas or variations. Eventhough, you contradict sometimes what I read
in books but I think you write more robust, portable, fail-safe, and
good software engineering code. It seems to me you understand it at
a very high level of details as to what goes on in OS and system
resources. Beginners take it for granted and code for the sake of
seeing their programs work but that may not be the best approach (or
even accurate). Books I have are introduction to MFC which is not
always the best practice but "good" for a new coder because they hide
details. I am going to read up on wchar, _T and LPCSTR, LPSTR and
other string related pointers, data types and macros. I will visit
your website. All the books I have focus on char mostly. Thanks for
help.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Re: CreateProcess in a loop
- From: David Lowndes
- Re: CreateProcess in a loop
- From: one-trick-pony
- Re: CreateProcess in a loop
- From: Joseph M . Newcomer
- Re: CreateProcess in a loop
- From: one-trick-pony
- Re: CreateProcess in a loop
- From: one-trick-pony
- Re: CreateProcess in a loop
- From: Joseph M . Newcomer
- Re: CreateProcess in a loop
- From: one-trick-pony
- Re: CreateProcess in a loop
- From: Joseph M . Newcomer
- Re: CreateProcess in a loop
- From: one-trick-pony
- Re: CreateProcess in a loop
- Prev by Date: Re: CGdiObj->DeleteObject()
- Next by Date: Re: Modal vs Modeless...
- Previous by thread: Re: CreateProcess in a loop
- Next by thread: Re: CreateProcess in a loop
- Index(es):
Relevant Pages
|