Type: Posts; User: Amit Sebiz
Search took 0.02 seconds.
March 23rd, 2005, 06:06 AM
thanx for the replies,
but what i was looking for was a algorithm that do it in order k, where k is number of 1 bits ie our answer.
I think Mr. Viggy's post will do the job in even a better...
March 22nd, 2005, 08:08 AM
hi can anyone give me efficient algorithm to count the number of bits in a number. proposed complexity is number of bits in a number itself.
June 24th, 2004, 12:36 AM
Pass the type of itsID member of Student class
i.e. if in class Student you have declared itsID as
Index <Student, int> I;
June 24th, 2004, 12:27 AM
Your calls to BeginPaint and EndPaint are pertaining to a child control why don't you handle the WM_PAINT handler of this control itself, just need to declare a new class and subclass your...
June 24th, 2004, 12:16 AM
You must handle the message one or the other way or tell windows you don't want to handle it (Call default CDialog::OnPaint()).
June 24th, 2004, 12:10 AM
About without any body, i just checked it. I think you must provide default handling if you are not repainting the dialog itself(removing the CPaintDC dc(this) also) as CPaintDC constructor calls...
June 23rd, 2004, 11:54 PM
Post some code. You seem to be invoking WM_PAINT message using InvalidateRect or UpdateWindow in your WM_PAINT handler.
June 23rd, 2004, 11:21 PM
Can you provide some sample code please how timeout can be implemented as after a particular period i have to kill the thread assuming that my DNS query failed.
I can't use terminate thread as it...
June 23rd, 2004, 03:06 AM
As you said, a menu command works fine, you can also send that command message using
June 23rd, 2004, 02:50 AM
hi, i am using dnsquery api function to query the mx record, what it seems to me as blocking my application. Is there any alternative or solution.
June 21st, 2004, 11:52 PM
Strange, movewindow should do the trick. can u post your code and elaborate a bit about what you wanna do.
June 21st, 2004, 10:58 PM
Where have you allocated memory to these members
moreover, you seemed to using pointer to a pointer here...
June 21st, 2004, 04:20 AM
Must keep in mind that cut, copy, paste are supported by edit box. So, you must validate the whole new text added not just last character in OnUpdate handler.
June 21st, 2004, 02:43 AM
You must associate your edit controls with variables edit1 and edit2. Use classwizard for this.
June 21st, 2004, 02:41 AM
Use the link provided by Andreas. You can use any color button class by modifing it according to your needs but you have to ownerdraw buttons if you want to change their color at any time.
June 21st, 2004, 02:04 AM
Check out thesearticles...
June 19th, 2004, 06:34 AM
Well, this seem to always evaluate to false....
pMsg->wParam == VK_TAB && pMsg->wParam == VK_MENU
June 15th, 2004, 09:14 AM
Though not tried, check out by updating the command string of the menu ID. Use ON_UPDATE_COMMANDUI hadlers
June 15th, 2004, 12:14 AM
what are your
class AA, class BB
I think for sending messages you must have a handle to destination window. You need to provide more information.
By the way are you using new here.......
June 10th, 2004, 09:28 AM
I have not worked much with tooltips, but i think by associationg your tooltip with a string resource and handling its OnUpdate command handler (just as in case of a statusbar pane string resource)...
June 10th, 2004, 01:10 AM
Hi there were 96 results, i found by searching these forum for keyword 'DoEvents'. Check it Out here
if i understand by but you ment by saying "circular compilation problems"
Declare a boolean variable in your class,
add a handler to your menu/toolbar click and toogle the value of boolean there
bState = !bState;
well, i checked out the thread, it seems a good alternative to worker threads for some cases but in my case the certain processes can go as long as for an hour and i think i should not...
Well, i was just asking about the order of deletion of pointers.
As regard using same pointer after deleting it, this will not any create problems.
Click Here to Expand Forum to Full Width