Search:
Type: Posts; User: joeu2004
Search:
Search took 0.01 seconds.
-
December 23rd, 2012, 07:34 PM
Thanks a bunch! That was very helpful.
-
December 23rd, 2012, 07:32 PM
Got it on my own! To wit:
#include "stdafx.h"
#include <stdlib.h>
#include <time.h>
#include <Windows.h>
DWORD initTime;
-
December 23rd, 2012, 04: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.
The...
-
December 23rd, 2012, 02:40 PM
-
December 23rd, 2012, 02: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, 02: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?
The preprocessor...
-
December 23rd, 2012, 02: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, 02: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, 11: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, 10:31 PM
Great! Thanks. I wanted "Not Set".
-
December 22nd, 2012, 08: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, 08:16 PM
Okay....
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, 07:17 PM
I have:
int _tmain(int argc, char* argv[])
{
printf("drive name: %s\n", argv[1]);
It displays only the first character of the first argument on the command line.
Yet the following works...
|
Click Here to Expand Forum to Full Width
|