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

Search:

Type: Posts; User: joseph_w

Search: Search took 0.02 seconds.

  1. Re: How to disable optimization Visual C++ 2010?

    I don't know what is the problem with the attachement. When I first uploaded the image it displayed normally, but then after a few minutes it displayed this error.
    Anyway the image just shows that...
  2. How to disable optimization in Visual C++ 2010?

    I want to disable optimization in Visual C++ 2010. In gcc on Linux I could just use the -O0 switch, but in Visual C++ 2010 there are two categories of optimizations, one in the C/C++ pane and the...
  3. Replies
    15
    Views
    3,614

    Re: WinAPI timer vs thread?

    The conclusion that I have reached is that there is no harm in manipulating the UI controls from a worker thread, but from a design perspective (and to prevent deadlocks) it is a better idea to only...
  4. Replies
    15
    Views
    3,614

    Re: WinAPI timer vs thread?

    But if I created all of the controls in the UI thread, won't all of the messages sent to these controls be added to this UI thread message queue? Does each control has it's own message queue?!
  5. Replies
    15
    Views
    3,614

    Re: WinAPI timer vs thread?

    I thought that if SendMessage() is called from the UI thread will call the window procedure directly, however if called from another thread it will put the message into the UI thread message queue.
  6. Replies
    15
    Views
    3,614

    Re: WinAPI timer vs thread?

    But what is the problem in doing something like that from a worker thread:


    SendMessage(hWindow, WM_SETTEXT, 0, (LPARAM)"Hello World");

    Wouldn't the message just get added to the UI thread...
  7. Replies
    15
    Views
    3,614

    Re: WinAPI timer vs thread?

    It it okay to manipulate the GUI controls inside of a worker thread (because I've heard that in order to do that I have to create a WinAPI timer)?
  8. Replies
    15
    Views
    3,614

    WinAPI timer vs thread?

    I am creating a WinAPI application, and I want to use a timer. Should I use the WinAPI timer mechanism (SetTimer(), etc.), or should I create a new thread (with a Sleep(timeout) inside of it)?
  9. never mind, wrong section.

    never mind, wrong section.
  10. Replies
    3
    Views
    2,201

    What are CRT file descriptors in Windows?

    I've always thought that in Windows there are only Windows file handles (which are somewhat the counterpart of file descriptors in Linux), and that a FILE wraps a Windows file handle, but now I am...
  11. Re: Is it a bad practice not to use #define UNICODE when creating a Unicode applicati

    lol I don't like to type extra characters I just like to know what a function does by looking at it and not thinking that I defined this or that...
    Sometimes I use CreateFileW() and WriteFileA() in...
  12. Is it a bad practice not to use #define UNICODE when creating a Unicode application?

    I like to know exactly what functions I am calling so I like to write something like CreateWindowExW() and CreateFileW() and not having to use macros.
    So can I do that without using #define UNICODE,...
  13. Java "volatile" alternative in C++ under Windows?

    I know from Java that having two threads sharing a global variable can cause two problems:
    1) Each thread can "cache" its own copy of the variable and manipulate this copy from now on.
    2) When...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured