I had that feeling several times and I kept looking at the documentation for a hint that this was the case, but there doesn't seem to be any there. Adding setw() before every item that needs to be...
Type: Posts; User: Jaken Veina
I had that feeling several times and I kept looking at the documentation for a hint that this was the case, but there doesn't seem to be any there. Adding setw() before every item that needs to be...
I've narrowed it down a bit more, by commenting out everything else in the same scope as this particular stringstream item. I've discovered the following...
Output.fill('0');
...
stringstream Output;
...
Output << setfill('0') << setw(pooldigits);
Despite the above line, int values are not being padded. I've checked that the value of pooldigits is 3, just before...
I've got an interesting issue trying to make an ofstream container class. For the moment, I'm trying to just pass through the << operator to the underlying ofstream object, as such
class...
Excellent! All is well. Thanks a bunch.
Subitem 0 or 1 for a single column?
Details/Report view is what I am going for. When I first started working on it, within my actual project, I added two columns, yes. When nothing came up, I figured I was doing it wrong, so I opened a...
Can it be done? After several days of messing around with this control, and not finding any online examples that don't use an image list, I'm wondering if the fact that I'm not supplying one is...
settings_file.clear(), actually, is what did it. I wish C++ file IO was more like C. I would have been done with this with about 10 hours less work. Thanks.
settings_file.clear(), actually, is what did it. I wish C++ file IO was more like C. I would have been done with this with about 10 hours less work. Thanks.
What I'm trying to do should be pretty self-explanatory from the code. Unfortunately, the code is extensive. Thanks in advance to anyone who's willing to give it a look.
jake.settings.cpp
...
So, you want to add more data/parameters to messages before they get passed to the Window Procedures?
Well, the program ends when you tell it to end. Generally, the idea is to end the program on WM_QUIT, which translates to
if(GetMessage(&Msg, NULL, 0, 0) > 0)
And the message is usually...
It's certainly possible, yes. Whether or not you want to do it depends on the type of program you're writing. If your program uses just a single window, for example, there's really no difference...
The height corresponds to the list portion? That's annoying. Thanks for the tip.
Can't get a combo box to display its content. If I query for its content, it seems to be working fine. CB_GETCOUNT returns the correct number, for example. I'm not sure what to make of it...
...
Well, in this case, it's a pseudo-standalone screensaver, which you can activate on command in addition to letting Windows activate it for you. It wouldn't really hurt anything, I suppose, to have...
Yeah, I kept searching after posting this and finally stumbled on the MSDN section about the Virtual Screen a few days later. I knew there would be some way to pull coordinates in the non-primary...
Anybody know how I would go about detecting other instances of a program, to ensure that only one instance is ever running?
Assuming you did call malloc or calloc initially and just didn't show it here...
Your problem is that you set temp[i] to '\0', but when you realloc i*sizeof(char) bytes, that doesn't include the...
Your call to realloc is fine (aside from not handling the NULL case), in terms of how realloc is used. My best guess from your wording is that you're doing something like this...
temp =...
Not to mention that the solution to that equation is N' = 1/N, not 1789569707...
N' = (1 / N) % R
N' = (1 / 1073741827) % R
N' = (0.00000000093132257201) % R
N' = (0.00000000093132257201) %...
So, I'm working on a basic screensaver framework and I'm having trouble with multiple monitor support. Currently, I just create a window whose client area covers the entire screen and contain the...
It certainly would be more efficient to just use the compiler's built-in functionality for variable-argument-macros. Good thing I've got it.
I know I've seen something like this before, but it's been a while and I can't get it to work. Does this ring a bell for anyone...
#include <stdio.h>
#define DEBUG(t) fprintf(debug_out, t)...