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.13 seconds.

  1. Replies
    19
    Views
    803

    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...
  2. Replies
    19
    Views
    803

    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...
  3. Replies
    6
    Views
    228

    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...
  4. Replies
    9
    Views
    395

    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 =...
  5. Replies
    42
    Views
    1,453

    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...
  6. Replies
    42
    Views
    1,453

    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...
  7. Replies
    5
    Views
    342

    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....
  8. Replies
    36
    Views
    1,044

    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.
  9. Replies
    36
    Views
    1,044

    Re: how overloading char* and string operators?

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

    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);
  11. Replies
    36
    Views
    1,044

    Re: how overloading char* and string operators?

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

    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.
  13. Replies
    36
    Views
    1,044

    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...
  14. 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.
  15. 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...
  16. Replies
    23
    Views
    1,253

    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...
  17. Replies
    8
    Views
    501

    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?...
  18. Replies
    8
    Views
    501

    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?
  19. 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...
  20. Replies
    3
    Views
    341

    Re: this part od codes what say?

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

    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...
  22. Re: How to get pointer to CMyView class from CMainFrame class?

    This error means that your View class is using your Document class, without including its header in the myView.h (possibly relying that it will get included first in the cpp file that uses it)....
  23. Replies
    23
    Views
    1,253

    Re: Waitable timer spotty precision

    I see now scenarios that can cause the timer to fire *EARLIER*. The precision is out of the question since we are talking about 15 seconds. No amount of CPU load can expedite the timer.
    Could it be...
  24. Replies
    2
    Views
    541

    Re: Text Justification

    Really? I just tried googling for "monospace text justification algorithm" and got over 3 million hits!
  25. Re: How to implement crosshairs (whole screen) in mdi-app?

    Does it really have to be drawn outside of your main frame window?
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center