I'm using the LVM_GETCOUNTPERPAGE message to determine how many rows to add and fill the ListView, but it's returning a value that's too high every time. It's off by 3 rows and I can't figure out...
Type: Posts; User: Viper187
I'm using the LVM_GETCOUNTPERPAGE message to determine how many rows to add and fill the ListView, but it's returning a value that's too high every time. It's off by 3 rows and I can't figure out...
Huh. I guess that does the job. Thanks
Thanks. I'm also curious if stripping debug info with -s matters? I mean, if it's an open source project anyway, I don't care about leaving debug symbols in the release. I'm just wondering if it...
Hah. Ok, that solves the debugging issue. Thanks. It'd be nice if I knew the right way to set that file up. I can't even figure out what half those arguments are "-O2" ??? "-O coff" ???
Ok, I've tried running gcc with -g a number of ways but GDB always says "no debugging symbols found." I'm using MinGW/MSYS with GCC 4.7.2 on Win7.
My makefle is definitely messy, but the only...
I'd like to lock my whole menu while a specific function is running instead of disabling/graying specific options in each menu using SetMenuItemInfo(). Is there a way to use the menu handle (HMENU)...
Ah hell. I realized that I was actually creating a temp copy of the huge var within a function as well. That would've been what would cause the overflow. Anyway, it's been reworked substantially.
...
That's what I've been doing, and I broke the stack with it. I've been restructuring things to use less memory since then, but it still annoys me.
Well, static was suggested because of the stack issue I had run into. Can I make a global static? "Global" meaning I want to access the same array/struct/whatever from anywhere in the program, NOT...
I guess declaring a static in a header doesn't make it global. You can't extern a static, can you?
Not really, in this case. When I declare this array I use a defined constant for the size so anything else I use that relies on what size that array is all changes with changing one number in a...
Why do I need to screw around using malloc (and free) on an array of structs that's ALWAYS the same size just because it's a little big? With everyone running systems with gigabytes of RAM, why is...
Gah. It was Wl (L). I thought it was WI.
How can I get MinGW/GCC to compile my program with a bigger stack? I've been googling and nothing I could find actually worked. Running Windows 7 here.
Works now. I really hate pointers sometimes. Been a year or more since I bothered to program anything. Trying to pick up where I left off on an old project.
unsigned char *tmpResults; u32...
You're missing the point completely. If I wanted to play around with loops, I'd do a function for it. I simply want to know the proper syntax to send copymem a pointer to the middle of the array...
No, 4 vars won't help me figure anything out. I know what I'm trying to get (BBBBBBBBBB by your example, but mines not a string it's data). What I don't know is how to copymem from the middle of the...
I'm trying to cut data from the beginning and end of an array, but my idea isn't working. The first memcpy line compiles but crashes the program. I can't figure out the right way to do it. This array...
Nice. Thanks
I have a program I've been working on and revising for quite some time, and I keep trying to cut down on repetitive stuff. I'm trying to come up with an easier way to show errors while including...
I've tried giving an ID to a menu popup in my resource file, but it never seems to work. I'm trying to come up with a way to automate something I do repeatedly with different parts of the menu. I'll...
I've got a dialog window with a subclassed edit control. My keyboard accelerators refuse to work while in a textbox, probably because the subclassed callback filters WM_CHAR so only hex characters...
I noticed that the tab key never works on my programs, and after doing some searching, I figured out I need to use IsDialogMessage. The problem is, I have multiple dialogs running as tabs on a main...
Well, I came up with a method to suit my purpose for now. :)
Thanks. I'll see what I can put together.