Type: Posts; User: Gyannea
Search took 0.02 seconds.
December 27th, 2005, 11:24 AM
Just took a look.
It seems that if I write
static const long int juliandays;
December 27th, 2005, 10:59 AM
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++...
December 27th, 2005, 10:19 AM
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...
November 4th, 2005, 08:01 AM
I have been confronted with unexpected behavior using
This function sits in a modeless dialog callback function, waiting for either a special set of events or a...
November 4th, 2005, 07:18 AM
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...
November 3rd, 2005, 09:01 PM
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...
November 3rd, 2005, 11:34 AM
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...
November 3rd, 2005, 10:36 AM
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...
November 2nd, 2005, 02:48 PM
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)...
November 2nd, 2005, 06:45 AM
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...
November 2nd, 2005, 06:16 AM
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.
November 1st, 2005, 01:29 PM
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
November 1st, 2005, 12:53 PM
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...
November 1st, 2005, 11:46 AM
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.
November 1st, 2005, 08:34 AM
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
July 28th, 2005, 03:50 PM
Wouldn't have guessed by the name! Thanks, that sounds better thanfaking an arrow key!
July 28th, 2005, 06:27 AM
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...
July 27th, 2005, 12:24 PM
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...
July 27th, 2005, 11:40 AM
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...
July 27th, 2005, 11:31 AM
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...
July 21st, 2005, 06:41 AM
RATS! Not what I wanted to hear. Thanks for the info, though!
July 21st, 2005, 06:35 AM
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...
July 20th, 2005, 03:44 PM
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,...
July 20th, 2005, 12:11 PM
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...
July 20th, 2005, 10:23 AM
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...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.