First make sure it is in the lib file. If you have grep do something like:
grep -i setlayeredwindowattributes *.lib
from your lib directory. If you don't have grep you could open the user32.lib...
Type: Posts; User: nakedBallerina
First make sure it is in the lib file. If you have grep do something like:
grep -i setlayeredwindowattributes *.lib
from your lib directory. If you don't have grep you could open the user32.lib...
Is there a specific message I can look for from any place in my program to determine when the program's taskbar button has been pressed?
My primary window is opened as:
WS_POPUP | WS_SYSMENU...
Agreed. (But then I DID warn you when I started thinking.)
To ensure all comes up clean I suppose following the malloc with a memset would work.
Dale L
Thanks for the info Salem. Wish I had known about the malloc situation years ago. I can remember pulling my hair out over the unexpected characters.
I'm thinking now (beware!)
What if you took...
Naked Ballerina is just the name of a recent series of paintings I did. People started tacking it to me. In reality I am neither naked nor a ballerina.
Dale L
Thanks again for everyone's input. I dug around and found the old code from which this originates. Mind you, this works but it doesn't feel right and I'm not sure of one particular part. I stripped...
Let me make sure I understand: setting it to NULL will actually defeat the malloc? So if I set nBody to NULL before doing anything with it I would be defeating the malloc?
In other words, I would...
Thanks for the input. While the WriteFile line I gave was not quite a real life example, your comments certainly did help shake the cobwebs and clear things up. Thanks.
Now, if you don't mind,...
Elysia, yes. Thanks. I've got it all working in standard C routines. I was curious as to how it would be done with win32's WriteFile. I pulled the following line from some old code that didn't work:...
Elysia, agreed. Hence my copies of K&R and Petzold are pretty much resident on my desk. Going through Petzold it is obvious that he is trying to remain win32 compliant. So one day I get to playing...
Elysia, thank you. As I read your reply I was banging my head and saying "I knew that." All too often I get caught in the act of thinking content or value rather than pointer. This probably comes...
Begging to differ on the act of commenting code.
I try to make myself comment every line as I code. Actually, I've had more than one instructor and/or associate insist that such is the best...
I've enjoyed many of your posts and decided to register and pick your minds if you don't mind.
Somehow I've managed to program for a LONG time and never bothered to understand some things. All too...