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

Search:

Type: Posts; User: Igor Vartanov

Page 1 of 80 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: [win32] - avoid flicker and do a correct redraw

    Who knows? You are expected to erase or not to erase. And return non-zero in first case, and 0 in the second case. You want Windows to erase for you, you just return 0, and not fidgeting with...
  2. Replies
    2
    Views
    24

    Re: System Shutdown function

    Too long for what? and who is to judge on that? It's system itself to decide what time it takes to shutdown. In case it's too long for you, you might decide not to shutdown at all, it will take zero...
  3. Re: How to create a setup file for an exe.

    inno setup example scripts
  4. Re: How to create a setup file for an exe.

    And what's wrong with Inno Setup?
  5. Re: [win32] - avoid flicker and do a correct redraw

    You just return TRUE, but erase nothing. As the result, neither you nor Windows takes care of the background.
  6. Replies
    4
    Views
    105

    Re: Abort operations in c

    You must program on your own everything related to interrupting your operations as well as bouncing back to previous ones. There is no such API, and cannot be expected any soon, as such API hardly...
  7. Replies
    7
    Views
    202

    Re: InvalidateRect

    The other window overlapse your window, and as the result Windows itself calculates the rect to be invalidated and re-drawn. And evidently does that right way. :) And TextOut uses just a single point...
  8. Replies
    19
    Views
    348

    Re: Variables declared in Windows loop

    Any executed thread is always provided with a stack of some depth big enough to let the thread run. And you can say the stack variables are already "allocated" by the fact of entering the function....
  9. Replies
    19
    Views
    348

    Re: Variables declared in Windows loop

    Yeah, it really does. (Want to provide some benchmarks for Windows app? I will appreciate it.) :) The thing is that window procedure we were talking about is not a time critical code, and never was...
  10. Replies
    7
    Views
    202

    Re: InvalidateRect

    Yes.



    const RECT rText={20,100,420,25};


    The last two in RECT initializer are not width and height, those are right and bottom. So your rect description is actually upside down. :)
    ...
  11. Replies
    19
    Views
    348

    Re: Variables declared in Windows loop

    Well, I'd say you miss the knowledge of how CPU executes a C/C++ function and accesses function variables on stack.

    When you say "they are declared... again and again", what do you mean by...
  12. Re: Database Backup Using VC++

    I thought I already did. Just wrap your code into batch file.
  13. Re: Database Backup Using VC++

    Same do I. The output redirection syntax to be only used in command shell. And neither CreateProcess() nor ShellExecute() knows what the redirection is.

    Consider the following little program:

    ...
  14. Replies
    20
    Views
    686

    Re: WinAPI Timers vs Sleep() accuracy

    FYI: My Win7 x64 workstation gave this for 30 hrs Sleep():


    [Friday, March 20, 2015 13:19:34] Before
    [Saturday, March 21, 2015 19:19:34] After
  15. Replies
    20
    Views
    686

    Re: WinAPI Timers vs Sleep() accuracy

    Estimating implies you do something more than just asking on public forums.
  16. Replies
    20
    Views
    686

    Re: WinAPI Timers vs Sleep() accuracy

    You always could estimate it yourself.


    #include <stdio.h>
    #include <atlstr.h>
    #include <atltime.h>

    void Log(LPCTSTR str)
    {
    CTime t;
  17. Replies
    20
    Views
    686

    Re: WinAPI Timers vs Sleep() accuracy

    DWORD SleepAlertable(DWORD timeout, HANDLE hAlert)
    {
    DWORD waitRes = WaitForSingleObject(hAlert, timeout);
    // WAIT_TIMEOUT - timeout expired
    // WAIT_OBJECT_0 - alerted
    // for...
  18. Replies
    20
    Views
    686

    Re: WinAPI Timers vs Sleep() accuracy

    What is WinAPI timer? WM_TIMER? Waitable Timer Objects?

    The thing with Sleep() is that it cannot be gracefully interrupted, for example, when you shutting down. In all other aspects it just does...
  19. Re: Should I use SendMessage() or PostMessage() to manipulate UI controls?

    Whatever simplification you do (or you think you do), reality wins. It gets you every time. Always. Just a matter of time. :)
  20. Re: Should I use SendMessage() or PostMessage() to manipulate UI controls?

    Typically, the scenario is rather straightforward, like you send a message that changes the control state, the control sends notification to its parent, that is being processed tries to acquire some...
  21. Re: win32 : ftp connection from textfield (builder and stub)

    My understanding is that the ftp app is embedded into win32 GUI app as a resource, and the GUI app is to make use of the ftp app to retrieve something from remote host. So, in case the description is...
  22. Re: Should I use SendMessage() or PostMessage() to manipulate UI controls?

    Oh, come on! Deadlock is just a deadlock. It can happen any time you appear reckless enough to not analyze the concequences of introducing synchronization among threads. Like in the article, when GUI...
  23. Re: File opening and closing after 24 hours

    Well, the policy of attending logs may differ from project to project, in fact, it's up to Customer...

    PS ...but I would consider the midnight log closure be the same strange as the 24hrs one. :)...
  24. Re: Unable to display a dialog in a UI thread

    You should start with checking if IDD_IMUI_FLASH_DLG dialog template is available there in the module (debug by stepping into Create()). In case it is, you check if the dialog creates some common...
  25. Re: How to change the client area icon during runtime

    The mistake was probably not reading CWnd::OnSetCursor article:


    PS. The Asian guy seems neglected that either. :)
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