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

Search:

Type: Posts; User: Amit Sebiz

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: bit count

    by Amit Sebiz
    Replies
    13
    Views
    6,264

    Re: bit count

    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...
  2. Thread: bit count

    by Amit Sebiz
    Replies
    13
    Views
    6,264

    bit count

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

    Pass the type of itsID member of Student class ...

    Pass the type of itsID member of Student class
    i.e. if in class Student you have declared itsID as
    int itsID
    Use

    Index <Student, int> I;
  4. Replies
    15
    Views
    3,845

    Hi, Your calls to BeginPaint and EndPaint are...

    Hi,
    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...
  5. Replies
    15
    Views
    3,845

    You must handle the message one or the other way...

    You must handle the message one or the other way or tell windows you don't want to handle it (Call default CDialog::OnPaint()).
  6. Replies
    15
    Views
    3,845

    About without any body, i just checked it. I...

    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...
  7. Replies
    15
    Views
    3,845

    Post some code. You seem to be invoking WM_PAINT...

    Post some code. You seem to be invoking WM_PAINT message using InvalidateRect or UpdateWindow in your WM_PAINT handler.
  8. Replies
    4
    Views
    748

    Can you provide some sample code please how...

    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...
  9. Thread: Form view

    by Amit Sebiz
    Replies
    15
    Views
    1,829

    Try using ...

    Try using
    (CMainFarme*)AfxGetMainWnd()->OnChange()
    As you said, a menu command works fine, you can also send that command message using


    AfxGetMainWnd()->SendMessage(WM_COMMAND,...
  10. Replies
    4
    Views
    748

    blocking function

    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.
  11. Replies
    3
    Views
    679

    Strange, movewindow should do the trick. can u...

    Strange, movewindow should do the trick. can u post your code and elaborate a bit about what you wanna do.
  12. Replies
    8
    Views
    912

    Where have you allocated memory to these members...

    Where have you allocated memory to these members

    char *username;
    char *password;
    char *NAME;

    moreover, you seemed to using pointer to a pointer here...

    &users[i].password
    check these...
  13. Replies
    6
    Views
    1,011

    Must keep in mind that cut, copy, paste are...

    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.

    Amit
  14. Thread: Edit Box

    by Amit Sebiz
    Replies
    11
    Views
    1,363

    You must associate your edit controls with...

    You must associate your edit controls with variables edit1 and edit2. Use classwizard for this.
  15. Replies
    5
    Views
    1,227

    Use the link provided by Andreas. You can use any...

    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.
  16. Replies
    5
    Views
    1,227

    Check out thesearticles......

    Check out thesearticles...
  17. Replies
    2
    Views
    2,061

    Well, this seem to always evaluate to false.... ...

    Well, this seem to always evaluate to false....

    pMsg->wParam == VK_TAB && pMsg->wParam == VK_MENU

    Amit
  18. Thread: Menu bar

    by Amit Sebiz
    Replies
    4
    Views
    609

    Though not tried, check out by updating the...

    Though not tried, check out by updating the command string of the menu ID. Use ON_UPDATE_COMMANDUI hadlers
  19. Replies
    11
    Views
    1,207

    what are your class AA, class BB I think for...

    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.......
  20. Replies
    3
    Views
    714

    I have not worked much with tooltips, but i think...

    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)...
  21. Replies
    6
    Views
    1,410

    Hi there were 96 results, i found by searching...

    Hi there were 96 results, i found by searching these forum for keyword 'DoEvents'. Check it Out here
  22. Replies
    4
    Views
    707

    if i understand by but you ment by saying...

    if i understand by but you ment by saying "circular compilation problems"
    Check followingFAQ
  23. Replies
    10
    Views
    1,161

    Declare a boolean variable in your class, ...

    Declare a boolean variable in your class,


    BOOL bState;

    add a handler to your menu/toolbar click and toogle the value of boolean there


    bState = !bState;
  24. Replies
    4
    Views
    642

    hi Alin, well, i checked out the thread, it...

    hi Alin,

    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...
  25. Replies
    5
    Views
    1,784

    Well, i was just asking about the order of...

    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.
    Amit
Results 1 to 25 of 113
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured