Search Results - CodeGuru Forums
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.01 seconds.

  1. Thread: bit count

    by Amit Sebiz
    Replies
    13
    Views
    5,093

    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
    5,093

    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
    691

    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
    1,859

    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
    1,859

    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
    1,859

    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
    1,859

    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
    531

    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
    930

    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
    531

    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
    450

    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
    465

    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. 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
    626

    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
    647

    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
    647

    Check out thesearticles......

    Check out thesearticles...
  17. Replies
    2
    Views
    1,044

    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
    314

    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
    611

    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
    446

    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. 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
    439

    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
    541

    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
    343

    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
    775

    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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center