Have you noticed that when windows declares a program as not responding you can then use the control box and sysmenu stuff? Does windows subclass your window class in this instance?
Type: Posts; User: Mithoric
Have you noticed that when windows declares a program as not responding you can then use the control box and sysmenu stuff? Does windows subclass your window class in this instance?
I keep track of key presses using an bool array, just set the wParam index in the array to true on key down and false on key up..
I wasn't quite sure about the free( tmpPtr ) I thought maybe you had just left it out, but I can see how it is a mistake.
I register the class with extra bytes and only the pointer to the tree...
Seems I've spoken a bit to soon (who didn't see that coming?) ... It seems that all the child members of the tree are being changed. I only have one realloc and 2 malloc things though ... Here is all...
Yay it's working, thanks guys!
:| My god, if 1 is the case then I have loads of code to go and fix... :(
>> Shouldn't it still be 1? <<
Yeah I meant to say 1, good catch ;) ..
tree = (TREESTRUCT*)malloc( sizeof( TREESTRUCT ) );
I have a variable which keeps changing for no reason.
I watched the variable with my debugger and in this code here -
tree->nNodes++;
tree->nodes = (TREENODESTRUCT*)realloc(...
Never mind I've fixed my problem I think.
Give the button a BS_OWNERDRAW style.
Now just handle the WS_DRAWITEM message in your window procedure.
You may want to read up on GDI.
Well, your best bet is to owner draw the button.
Easiest way is to do it in the registering of the window class
wncl.hbrBackground = CreatePatternBrush( LoadBitmap( hInstance, MAKEINTRESOURCE( your_bitmap ) ) );
I'm using Dev-C++ and the integrated debugger is buggy for lack of a better word.
Forgive my ignorance, but what is a map file?
My god that looks complicated! I think I'll just quit this project while I haven't wasted to much time ... I would have thought there would be a function already for it, that's pretty strange.
oh :| not good... alrighty, I have a few loops so I'll have to try and narrow it down..
Thanks.
I'm getting this error every now and again in my application.. It only comes up when I start the program and it doesn't always come up..
I use a random number to determine the hand you are dealt...
I'm making a card game using cards.dll ... Now all is going well so far, drawing of the cards is pretty simple and I've go most of the logic for the game coded. But I can only draw cards in one...
Don't you need to have a parent for WS_POPUP?
Is OpenGL a registered class?
Or if you are like me and like making your own from scratch it'd take you less than an hour for each of those. The color one would be especially easy.
Ok, I have it but I'm clueless ... How can I narrow down the offset?
Cheers, downloading away. :)
There is a tutorial on casting on cprogramming.com .. If I remember correctly.
Does anyone know of a hex editor which I can use to narrow down the location of a variable or something? Like I know the value at instance 1, and then in instance 2 it will change in the file (a...