Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: joeu2004

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    910

    Re: How to fork process or create thread?

    Thanks a bunch! That was very helpful.
  2. Replies
    4
    Views
    910

    Re: How to fork process or create thread?

    Got it on my own! To wit:



    #include "stdafx.h"
    #include <stdlib.h>
    #include <time.h>
    #include <Windows.h>

    DWORD initTime;
  3. Replies
    4
    Views
    910

    How to fork process or create thread?

    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...
  4. Replies
    3
    Views
    1,296

    Re: How to call sleep()?

    OMG, I forgot! Thanks.
  5. Re: Where to put #define _CRT_SECURE_NO_WARNINGS?

    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...
  6. Re: Where to put #define _CRT_SECURE_NO_WARNINGS?

    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...
  7. Replies
    3
    Views
    1,296

    How to call sleep()?

    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...
  8. Replies
    4
    Views
    1,925

    Re: #include errors: how to avoid?

    Thanks. Including <windows.h> does eliminate the error.

    As for cherry-picking, I was simply following the information in the sleep "man page" at...
  9. Replies
    4
    Views
    1,925

    #include errors: how to avoid?

    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...
  10. Replies
    4
    Views
    749

    Re: How to access argv strings?

    Great! Thanks. I wanted "Not Set".
  11. Where to put #define _CRT_SECURE_NO_WARNINGS?

    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.)
    ...
  12. Replies
    4
    Views
    749

    Re: How to access argv strings?

    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,...
  13. Replies
    4
    Views
    749

    How to access argv strings?

    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...
Results 1 to 13 of 13


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center