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

Search:

Type: Posts; User: VladimirF

Page 1 of 80 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: Programming-practise for LO- and HI-WORD in WM_COMMAND?

    I'd go one step further: get control's ID then pass HIWORD(wParam) to that control's handler, unparsed.
  2. Replies
    9
    Views
    429

    Re: the timer isn't created :(

    Is this
    case WM_TIMER:
    in the WindowProc of the inst->hWnd?
  3. Re: Two ChlidFrames in one MDI application?Is it a good solution?

    In addition to zerver's suggestion, MFC App Wizard can create that for you in a few clicks.
  4. Re: How to use CEdit Control variable updated from a tab to the dialog box ?

    Make sure you are in Debug configuration.
    Place the cursor on your line:

    GainExTimeF = SettingsTab.ModeCustom(k);
    and hit F5.
    When you "break" into debugger, use F11 to step into the function...
  5. Replies
    19
    Views
    2,720

    Re: C++ Memory Mapped Files Trouble

    So you plan to write variable-length records to a file? Then recycling becomes tricky. If you want to avoid copying entire multi-gig file, you would have to replace records in-place, dealing with the...
  6. Replies
    19
    Views
    2,720

    Re: C++ Memory Mapped Files Trouble

    May I do a little math?

    20 packages per sec at 3MB a piece is 60MB of data per second.
    This is 3,600MB per minute, or 360GB for a 100 min you want to keep your data (not 50GB).
    What kind of...
  7. Replies
    6
    Views
    501

    Re: Radio Button help needed

    Are your radio buttons BS_RADIOBUTTON or BS_AUTORADIOBUTTON? I would suggest - BS_AUTORADIOBUTTON. Then, as GCDEF stated, you won't need SetCheck() calls.
    I also suggest to set the next control...
  8. Replies
    9
    Views
    769

    Re: Prob with FloodFill

    CBrush brBlack(RGB(255,255,255));
    This is actually a white brush; hard to see over the white background :)

    You should restore the mode just like you did the brush:

    int iOldMode =...
  9. Replies
    42
    Views
    3,223

    Re: Multiple thread question

    I have another crazy idea. Could it be that your IO requests to that NAS were so sparse that it was getting to the stand by/sleep mode and had to wake up for the next IO? That could explain your...
  10. Replies
    42
    Views
    3,223

    Re: Multiple thread question

    Oh, I so much agree with OReubens - was going to post almost the same opinion.
    Are you 100% sure in your assessments? I am just sooo skeptical that that parallel execution can get you a 30 times...
  11. Replies
    5
    Views
    541

    Re: What do you think about my program?

    You don't need that many global variables (that is, if you need any).
    For example, your "hSomething variables" are only used in LoadPlayerData(), so they could be locally defined in that function....
  12. Replies
    36
    Views
    1,930

    Re: how overloading char* and string operators?

    ...but you can't pass a Variant to a function that takes string, unless it has string cast operator.
    I am not really sure what OP wanted.
  13. Replies
    36
    Views
    1,930

    Re: how overloading char* and string operators?

    But this code (#26) doesn't have string() operator!
  14. Replies
    36
    Views
    1,930

    Re: how overloading char* and string operators?

    Are you sure? I am not on VS 2012 (have 2010 at the moment), but I get:

    for that line:

    Variant(bool val)
    {
    result=to_string(val);
  15. Replies
    36
    Views
    1,930

    Re: how overloading char* and string operators?

    Right. I missed that. I guess the point was not strong enough :)
  16. Replies
    3
    Views
    486

    Re: Keep CDialog in 16:9 Format?

    OnSizing is more like notification: there is no way to prevent that sizing.
    I would use WM_WINDOWPOSCHANGING message and modify WINDOWPOS structure to maintain aspect ratio.
  17. Replies
    36
    Views
    1,930

    Re: how overloading char* and string operators?

    I am surprised that no one commented on that cast. It is NOT nice at all!
    c_str() returns a constant pointer, but your cast operator is casting constness away. That allows caller to modify string...
  18. Re: invalidate()/updatewindow() debug vs. release

    What is your Status? Is it a dialog? It is not enough to construct dialog object, you need to create its window.
  19. Re: How to tell a file is locked wityout opening (very fast)

    Could you please clarify: if *ANY* of the files are locked you will not move the other ones too?
    In that case you would have to lock the files yourself, or else they might get locked after your...
  20. Replies
    23
    Views
    1,982

    Re: Waitable timer spotty precision

    I don't think that this is true, honestly.
    The "imprecision" of timers in Windows is about fraction of a second, NOT 1-2 seconds!
    I am not familiar with virtual machine timing issues, but aren't...
  21. Replies
    8
    Views
    714

    Re: Error in last output

    I would like to suggest further improvements.

    This and a few more similar fragments may be called "entrapment" :)
    If you know the valid range of values, why not to include it in the FIRST prompt?...
  22. Replies
    8
    Views
    714

    Re: Error in last output

    I have never in my 30+ years in software development seen this original style of curly braces placement!

    Also, what would that code do if D is greater than 3.500?
  23. Re: How to implement crosshairs (whole screen) in mdi-app?

    I can suggest two ways to handle that.
    1. Register for WM_MOUSELEAVE message.
    2. Capture the mouse by using SetCapture(); release the capture when mouse leaves your window. Note: you would have to...
  24. Replies
    3
    Views
    480

    Re: this part od codes what say?

    This code says that its coder didn't know how to use strings in C#.
  25. Replies
    23
    Views
    1,982

    Re: Waitable timer spotty precision

    I feel a need to share one of my favorite quotes:


    My point is: we are looking for an issue in one piece of code, while the issue is in another...
    You mentioned multiple threads. Do more than...
Results 1 to 25 of 2000
Page 1 of 80 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