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

Search:

Type: Posts; User: Gyannea

Page 1 of 16 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    786

    Re: initializing an array in a class object

    Hi Eli,

    Just took a look.

    It seems that if I write

    myclass
    {
    public:
    static const long int juliandays[11];
  2. Replies
    6
    Views
    786

    Re: initializing an array in a class object

    Hi!

    Tha "static" approach was just a desparate attempt. I searched the site for initialization of arrays in a class object with various wordings on the search and could not find anything. My C++...
  3. Replies
    6
    Views
    786

    initializing an array in a class object

    I am trying to initialize an array (julian days by month) when an instance of a class object is created. I have no idea how to do this. have tried the standard approach of initialization as done in...
  4. Do Windows controls skip the message queue?

    I have been confronted with unexpected behavior using

    MsgWaitForMultipleObjects().

    This function sits in a modeless dialog callback function, waiting for either a special set of events or a...
  5. Replies
    2
    Views
    1,087

    Re: Changing Text Color in a Button

    I am not sure, but I think the message at the win32 level is WM_CTLCOLORxxx where xxx stands for a bunch of different items. I have always thought the only way you could color the text of a button is...
  6. Replies
    5
    Views
    9,189

    Re: MsgWaitForMultipleObjects()

    I noted something else that surpised me. In the debugger I put a break in the message loop if the message was a WM_DESTROY or a WM_COMMAND and wParam IDCANCEL. THen I put another break in the...
  7. Replies
    5
    Views
    9,189

    Re: MsgWaitForMultipleObjects()

    Yes it is, or at least something like that. I tried that approach using many message combinations, and via the debugger got to stop on a message. But the "break" did not succeed in exiting the...
  8. Replies
    5
    Views
    9,189

    MsgWaitForMultipleObjects()

    I give up!

    I have tried everything to try and handle this function inside a modeless dialog box callback function (maybe that's not possible)?

    Here is the code. Its in a radio button case...
  9. Re: Overhead for Sleep(), WaitFor...(), SetEvent()..

    In many cases I would not be concerned about the overhead, but in this case it is in a high priority thread which runs continuously and is a big CPU drain. It gets called at the sample rate (48K)...
  10. Overhead for Sleep(), WaitFor...(), SetEvent()..

    Which would be more efficient and accurate to just wait 'x' milliseconds

    Sleep(x) or WaitFor SingleObject(hevent, x) where 'hevent' is never signalled?

    Also, I have a thread which calls...
  11. Replies
    9
    Views
    3,414

    Re: Creating an Event across two threads

    Yes, it worked. Thread A knows of 'b' since it is a global instance (the process runs continuously in the background monitoring the received radio signal).

    Thanks for all your help.

    Brian
  12. Replies
    9
    Views
    3,414

    Re: Creating an Event across two threads

    I was assuming it would have access the following manner:

    (1) When I create the instance that creates thread B, there is a private variable 'HANDLE hevent'.

    Then in the initialization I have
    ...
  13. Replies
    9
    Views
    3,414

    Re: Creating an Event across two threads

    Hmmm. Didn't really think of that approach. But again, it really looks like the singleton class of this shared event is still just a global...except that it is protected (I couldn't set it to a...
  14. Replies
    9
    Views
    3,414

    Re: Creating an Event across two threads

    Thanks Sidhartha!

    Yes, I did mean 'Object' and not 'Event', I was just thinking events.

    Okay, that is what I thought; effectively the handle is a global; you just "pass" them to the threads.
    ...
  15. Replies
    9
    Views
    3,414

    Creating an Event across two threads

    In Thread A I want to wait for the value of some parameter in Thread B to be set to a certain value and if it doesn't happen in 10 seconds, the wait is terminated.

    So, in Thread A I have a
    ...
  16. Re: Cursor goes to beginning of digits in edit box!

    Wouldn't have guessed by the name! Thanks, that sounds better thanfaking an arrow key!

    Brian
  17. Re: Cursor goes to beginning of digits in edit box!

    The problem is in the subclassing (otherwise it doesn't happen). I have found a work around. After I call the 'SetWindowText()' API function I post a WM_KEYDOWN message and fake an arrow key of my...
  18. Re: Cursor goes to beginning of digits in edit box!

    Did that already, but it doesn't help. The problem comes from a 'SetWindowText()' API function used in the subprocedure. When a WM_CHAR message is received, the standard handler is used, but after...
  19. Cursor goes to beginning of digits in edit box!

    I have a multiline, numerical only non-rich edit box with right allignment. But when I enter a digit, the first digit appears rightmost (as it should) but the cursor jumps to the beginning of the...
  20. Replies
    1
    Views
    990

    Re: How to change system audio settings?

    You use the Mixer API functions. That interface is a real pain in the hindquarters. But it is what you are stuck with if you want to make your own Volume Control, just like the Windows volume...
  21. Replies
    3
    Views
    1,063

    Re: Get Dialog Box ID

    RATS! Not what I wanted to hear. Thanks for the info, though!

    Brian
  22. Replies
    8
    Views
    2,966

    Re: Making a modeless dialog modal?

    Humpty Dumpty: Yes, I understand that what you do is one approach, but I do not know how Windows does it. I believe there must be some flag that tells windows to do whatever technique it uses to...
  23. Replies
    3
    Views
    1,063

    Get Dialog Box ID

    I am trying to get the ID of a dialog box inside the callback function. I figured the following should work:

    Upon entry to the dialog callback function:

    dlgidd = GetWindowLong(hwindow,...
  24. Replies
    8
    Views
    2,966

    Re: Making a modeless dialog modal?

    Well, it should prevent switching back to the parent window (the action taken to create the modal dialog). For example, the good old message box. When you get one of those, you can't go back to the...
  25. Replies
    8
    Views
    2,966

    Re: Making a modeless dialog modal?

    Yes, I only want to create a single instance of the dialog from a given parent. At first I didn't want to be able to anything but handle that dialog, (not even go to other "parent" windows) but I am...
Results 1 to 25 of 376
Page 1 of 16 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center