Re: reference
On Apr 8, 6:50 pm, Sam <s...@email-scan.com> wrote:
worlman...@yahoo.com writes:
The prototype of GetExitCodeThread is like this -
GetExitCodeThread(
__in HANDLE hThread,
__out LPDWORD lpExitCode
);
There's no such function in C++.
And your point is?
C++ programmers deal with many functions every day that are not in C+
+; they are all written in C++. The function signature above is on-
topic here.
=============================
why we put &dwExitCod in the parameter? like -
Who knows.
C++ programmers know.
This is a Microsoft Windows-specific function, so you should ask
this question in some other, different newsgroup that's more appropriate for
MS C++-specific topics.
That is no Microsoft Windows-specific function at all. All we are
seeing is an interesting function signature, with the __in and __out
in there. Some probably #define'd names added...
The fact that you are bringing some external knowledge to claim it to
be doesn't make that signature off-topic here.
How can a C++ programmer ask a question about a function signature
without using a function that is not in C++?
=============================
that's why &dwExitCode ? since &dwExitCode "returns" a pointer to
DWORD.
You've just beginning to discover why experienced C++ programmers consider
MS Windows to be worthless crap. Decades and decades of accumulated cruft
and debris, to the point that the whole thing is a tangled, hairy mess.
Any project that lives that long is likely to become a tangled hairy
mess. Microsoft's interfaces are designed years before the software
industry could mature enough to see better ways.
Ali