Search:

Type: Posts; User: 168gr

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,973

    Gah. Solved. A 3rd party library I'm using had...

    Gah. Solved.

    A 3rd party library I'm using had a call to realloc in it, that only got called on the very rare occasion when data needed to grow. And sometimes realloc returns a pointer to the same...
  2. Replies
    5
    Views
    1,973

    Sort of. The program runs on a server I have...

    Sort of.

    The program runs on a server I have no control over and no access to, except to upload the program. No shell access. Sadly, it's a Windows IIS machine.

    It was originally written to run...
  3. Replies
    5
    Views
    1,973

    Bizarre and Frightening Bug

    This bug only pops up occasionally. It was very hard for me to track down and verify that it was happening at all, and then reproduce it.

    This is complicated by the fact that this is a CGI...
  4. After much wailing and gnashing of teeth, I got...

    After much wailing and gnashing of teeth, I got it to work. Not sure if this is the "correct" way to do it, but it does work. I used the CreateDIBitmap() function instead.
    BITMAPINFOHEADER...
  5. Raw RGB image in memory - how to create a bitmap and palette I can use?

    I suspect this is a trivial problem to solve but it's driving me nuts.


    I have functioning code that uses LoadBitmapFromBMPFile() which I lifted from Microsoft's web site to load a bitmap and...
  6. Replies
    4
    Views
    910

    Thanks, very helpful.

    Thanks, very helpful.
  7. Replies
    4
    Views
    910

    I should add that I have been successful with...

    I should add that I have been successful with keeping this portion as is
    #define IDC_BUTTON_S1 1501
    #define IDC_BUTTON_S2 1502
    #define IDC_BUTTON_S3 1503
    ...
    #define IDC_BUTTON_S10 1510


    ...
  8. Replies
    4
    Views
    910

    Message handling for an array of buttons

    I'm sure this has a trivial answer ...

    I have a set of buttons in a program that have related functions.

    Working code:


    #define IDC_BUTTON_S1 1501
    #define IDC_BUTTON_S2 1502
    #define...
  9. Many thanks to both of you. Quick question for...

    Many thanks to both of you.

    Quick question for novacain:



    Why the separate check to see if HIWORD(wParam) is BN_CLICKED?

    Isn't LOWORD(wParam) being IDC_BUTTON_ONE enough? What can you do...
  10. FWIW, I have it functioning with some of your...

    FWIW, I have it functioning with some of your corrections, but not your organization / scheme:

    Making the buttons:


    case WM_CREATE:
    {
    hCtl = CreateWindow(
    L"BUTTON", ...
  11. I don't suppose you have that in straight C, do...

    I don't suppose you have that in straight C, do you?

    I can probably tweak it and get past those passing-argument-by-reference bits by just passing pointers (and defining the structures in the...
  12. The 168 Amax does great in my .308 but actually...

    The 168 Amax does great in my .308 but actually I'm finding that the 175 SMKs are maybe a bit better past 7-800 yards ... :)


    Thanks for responding. That looks so much cleaner ...




    I...
  13. Is this the correct way to handle button messages?

    I'm very new to Windows programming. The basic problem is I don't know what I'm doing. :-)

    This code works correctly, but the message handling looks kludgy (especially the casting required to...
Results 1 to 13 of 13