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

Search:

Type: Posts; User: Boris K K

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    961

    Re: Most frequent used programs

    It seems this information is intentionally obscured:
    http://blogs.msdn.com/oldnewthing/archive/2007/06/11/3215739.aspx
    Check also the reply to the second comment.
  2. Replies
    9
    Views
    831

    Re: UDP transmitting/loopback problem.

    Also, make sure the listening application listens on 127.0.0.1.
  3. Replies
    1
    Views
    915

    Re: Set Default Font

    The closest thing I can think of is setting the font at dialog template level.

    See FONT resource definition statement.
  4. Replies
    4
    Views
    797

    Re: How to call another program?

    I believe this is the true problem that needs solving:



    and in Windows environment threads are better solution to it than processes. *NIX is another matter...
  5. Replies
    4
    Views
    797

    Re: How to call another program?

    For the described problem

    Threads

    seem more appropriate.
  6. Re: WINAPI converting int to CHAR to display as a Static's text

    1. There is simply no way szChar to contain strange characters immediately after the call to sprintf. Your code is OK as long as you compile without UNICODE defined (which means it is not that OK).
    ...
  7. Re: WINAPI converting int to CHAR to display as a Static's text

    Or just use SetDlgItemInt. It will work even for non-dialog parent window as long as hStatic has a unique ID.

    Alternatively, for "purists" that like to use WinAPI whenever possible, there is...
  8. Re: Detecting if 'Control' or 'Shift' key was down when key pressed

    No, using GetAsyncKeyState (is Shift down right now) may result in incorrect capitalization. GetKeyState (was Shift down when 'l' was pressed; was Shift down when 'e' was pressed, etc.) should be OK.
  9. Re: Detecting if 'Control' or 'Shift' key was down when key pressed

    Actually it is not a flow. You are interested if Ctrl was down at the time the other key was pressd, not whether it is down or up at the moment you are processing the message.
  10. Replies
    3
    Views
    505

    Re: how to read a particular sector of cd

    Typically, one would use a SCSI command and ASPI or SPTI API to send it to the device.
  11. Re: Detecting if 'Control' or 'Shift' key was down when key pressed

    Your code does not make much sense to me but if you want to check the state of other keys, such as Ctrl, Alt, or Shift while processing WM_KEYUP/DOWN, you can use GetKeyState API function.
  12. Replies
    3
    Views
    727

    Re: Works in debug, not in release

    In debug mode uninitialized variables are filled with bytes that correspond to a big unsigned value. This can explain why uninitialized variable would work. I see no way buffer size initialized to 0...
  13. Replies
    2
    Views
    470

    Re: writing stuff to cd's

    IMAPI
  14. Re: Sending text to a toolbar button not working, and other toolbar question

    It seems like you are mixing Unicode and Multi-byte. Use TCHAR instead of char, LPTSTR instead of LPSTR and LPWSTR.
  15. Re: Adding a bitmap to a toolbar button why isn't this working?

    You must not use


    tbab.hInst = HINST_COMMCTRL;


    unless you want to use a system bitmap. Use the application's HINSTANCE or the HINSTANCE of a .dll depending on where the resource is located.
  16. Replies
    2
    Views
    545

    Re: disable pasting on an edit control

    Better try to intercept WM_PASTE.
  17. Thread: page fault

    by Boris K K
    Replies
    8
    Views
    785

    Re: page fault

    Although this also applies to other cases, I will continue with examples from file mapping:

    (1) If you do


    HANDLE hMapping = CreateFileMapping(INVALID_HANDLE_VALUE, ..., PAGE_READWRITE, ...);...
  18. Thread: page fault

    by Boris K K
    Replies
    8
    Views
    785

    Re: page fault

    It is not the process, it is the operating system kernel handling the page fault that knows. Suppose two processes map the same file in memory in modes compatible with each other, for example both...
  19. Thread: page fault

    by Boris K K
    Replies
    8
    Views
    785

    Re: page fault

    I suppose by "hardware" they actually mean the page table of the process where the page fault occurs.
    - the process does not "know" where in physical memory to look for the requested page
    - the...
  20. Thread: page fault

    by Boris K K
    Replies
    8
    Views
    785

    Re: page fault

    Wikipedia
    Microsoft TechNet

    Edit: I forgot to add the most important link :rolleyes:
  21. Replies
    5
    Views
    635

    Re: Small Simple Problem

    You must create a modeless dialog box. Then you can change method IncreaseStep to call StepIt() only once for each invocation. Setting of range and initial position of m_Progress belong more to...
  22. Replies
    5
    Views
    635

    Re: Small Simple Problem

    DoModal returns only after the dialog box is closed.
    Even if you had called IncreaseStep while the dialog was visible you were not likely to have seen the progress bar moving, just its final state....
  23. Replies
    5
    Views
    4,467

    Re: sending unicode over winsock

    Also UTF-8 is a good platform-indepenent encoding (fixed byte order). And it is supported by WideCharToMultiByte and MultiByteToWideChar - CP_UTF8.

    Note that UTF-8 is a variable-length encoding...
  24. Replies
    5
    Views
    574

    Re: Serial communication: 2nd question

    COMSTAT structure should be allocated by the caller. As in


    COMSTAT stat = {0};
    ClearCommError(..., &stat);
  25. Replies
    1
    Views
    2,894

    Re: Set Duplex Printing Programmatically

    Search for "duplex" in KB167345.
Results 1 to 25 of 296
Page 1 of 12 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