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...
Type: Posts; User: 168gr
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...
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...
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...
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...
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...
Thanks, very helpful.
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
...
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...
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...
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", ...
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...
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...
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...