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

  1. Replies
    15
    Views
    18,842

    Re: Passing a struct to and from a DLL

    I have a philosophical question related to your issue: my understanding is that the purpose of dynamic linking is mainly decoupling some functionality so that it can be developed/deployed separately....
  2. Re: Restore RGB values back into BITMAP image file

    Could you load that new image into your program and dump it to another text file? Then see where your RGB values differ.
  3. Replies
    6
    Views
    1,306

    Re: Problem with MFC Application

    I don't think it's a missing library; the Exception Code is Access Violation...
    Could you try to install the Dependency Walker on that system, load your application there and do Profile -> Start...
  4. Replies
    7
    Views
    2,515

    Re: Hook SendMessage for background processes

    Is that what you are trying to do? This has nothing to do with hooking window procedure, and even less - with WM_SETTEXT message.
  5. Replies
    3
    Views
    1,153

    Re: Windows basic questions

    Everything you ever wanted to know About Window Classes.
    Different processes can register different classes with the same name.
  6. Re: Code to measure CPU usage returns inconsistent results for overclocked CPU

    I understood that this was not an assumption, but observation.

    That is only true for "lazy" system. Try video encoding - it will keep your CPU at 100% for hours...
  7. Re: Code to measure CPU usage returns inconsistent results for overclocked CPU

    Not sure what you read first - here or there, but could you try QueryPerformanceFrequency() on that CPU? Does it reflect regular or overclocked speed?
  8. Re: win32 - how can i add more flags to messagebox?

    I am with OReubens on that: don't use MessageBox() function if you need customization. Just create your own DialogBox and make it as flexible as you need.
    There is only one feature of the MessageBox...
  9. Replies
    10
    Views
    1,933

    Re: win32- hook: how changing the aligment text and position of messagebox?

    What flags are you asking about? Could you please explain?
  10. Replies
    10
    Views
    1,933

    Re: win32- hook: how changing the aligment text and position of messagebox?

    I can say that the STATIC child control is not yet created. Are you calling that from your HCBT_CREATEWND? If yes - it is too early. Try HCBT_ACTIVATE.
  11. Replies
    10
    Views
    1,933

    Re: win32- hook: how changing the aligment text and position of messagebox?

    Try DebugView at http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
  12. Replies
    10
    Views
    1,933

    Re: win32- hook: how changing the aligment text and position of messagebox?

    1. Your test is strange: you are trying to create a MessageBox form the hook set on creation of message boxes; looks like infinite recursion.
    2. Because of #1 and multiple other reasons, NEVER use...
  13. Re: How to synchronize a worker thread from the main thread?

    What do you mean by that:

    Isn't it a contradiction?
  14. Replies
    27
    Views
    6,534

    Re: Encrypt/Decrypt Problem

    SUB is 0x1A, or Ctrl+Z, which sometimes is used as an end-of-file mark.
    However, since you open your file as std::ifstream::binary, that should not matter.
    Are you sure that your string is...
  15. Re: [RESOLVED] win32 - how center a control depending on it's parent position and siz

    Do you want to NOT count caption and border of the parent window? Then use GetClientRect() instead of GetWindowRect().
    Please note: client rectangle is always in client's coordinates.

    Also please...
  16. Replies
    27
    Views
    6,534

    Re: Encrypt/Decrypt Problem

    Apparently, the problem is in writing/reading the encrypted string to a file.
    What is filewrite()? And is there fileread()?
  17. Re: EnumChildWindows & FindWindow doesn't work MFC but works Console

    What is counter_Child6++? Where is it defined? How is it initialized?
    Did you debug your EnumChildProc2() function? Is it called? How many times? Looks like counter_Child6 is never equal to 6......
  18. Re: EnumChildWindows & FindWindow doesn't work MFC but works Console

    ...unless you call it from the class that is derived from CWnd. In that case, you would need to specify global scope to get the HWND version:

    HWND hWnd = ::FindWindow(_T("#32770"), _T("Unable to...
  19. Re: [RESOLVED] GDI - can i speed up the DIB code?

    you are welcome
  20. Re: GDI - can i speed up the DIB code?

    That's cool, but I wonder if it will be any faster than my last posted code.
    This example does pretty much the same thing, but it manipulates region data directly.
  21. Re: GDI - can i speed up the DIB code?

    Oops... I incorrectly used SetRectRgn() function by passing the width of the rectangle instead of its right coordinate.
    Here is corrected code:


    DWORD p = 0;
    int xStart = 0;
    bool...
  22. Re: GDI - can i speed up the DIB code?

    I might have missed something.
    Could you please upload your zipped test project (without Debug/Release folders) here?
    What bitmap do you pass to function HRGN RegionbyBitmap(HBITMAP...
  23. Re: GDI - can i speed up the DIB code?

    This is JPEG (compressed).
    Do you have the original BMP image? And what color is used to convert to transparent?
  24. Re: GDI - can i speed up the DIB code?

    Could you please attach the original bitmap you are trying to convert?
  25. Re: GDI - can i speed up the DIB code?

    Try this in place of your scanning code:


    // ---------------------------------------------------------
    // scan the bitmap
    // ---------------------------------------------------------

    DWORD p...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured