December 23rd, 2012, 06:34 PM
Thanks a bunch! That was very helpful.
December 23rd, 2012, 06:32 PM
Got it on my own! To wit:
December 23rd, 2012, 03:11 PM
How can I implement the paradigm demonstrated by the code below to run on WinXP?
I want to fork a process or create a thread that shares global variables with the parent process/thread.
December 23rd, 2012, 01:40 PM
December 23rd, 2012, 01:27 PM
Thanks for the pointers and explanation. Actually, the quote that does it for me, albeit non-authoritative, is from the wiki page, to wit:
``Visual C++ will not compile anything before the...
December 23rd, 2012, 01:57 AM
Thanks. Probably good advice.
But my question was: what difference does it make if I put the #define before #include "stdafx.h" instead of in #include "stdafx.h" itself?
December 23rd, 2012, 01:51 AM
I have two problems with the code below:
1. I cannot find a header file to #include that has the sleep function prototype.
2. When I add my own sleep function prototype, I get an unresolved...
December 23rd, 2012, 01:09 AM
Thanks. Including <windows.h> does eliminate the error.
As for cherry-picking, I was simply following the information in the sleep "man page" at...
December 22nd, 2012, 10:09 PM
I get a slew of syntax errors starting in line 243 of <WinBase.h>.
The compiler underscores such typedefs as ULONG_PTR, DWORD, PVOID and HANDLE among others.
Presumably, <winbase.h> has a...
December 22nd, 2012, 09:31 PM
Great! Thanks. I wanted "Not Set".
December 22nd, 2012, 07:24 PM
I routinely compile with #define _CRT_SECURE_NO_WARNINGS.
When I put before the first #include in my main (and only) module, I get a compile-time warning or error. (I don't rememeber which.)
December 22nd, 2012, 07:16 PM
The original declaration was _TCHAR* argv, which declares argv as pointer to strings of wide chars (wchar_t).
And sure enough, when I revert to that declaration,...
December 22nd, 2012, 06:17 PM
int _tmain(int argc, char* argv)
printf("drive name: %s\n", argv);
It displays only the first character of the first argument on the command line.
Yet the following works...