Search:

Type: Posts; User: Jaken Veina

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,740

    I had that feeling several times and I kept...

    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...
  2. Replies
    5
    Views
    3,740

    I've narrowed it down a bit more, by commenting...

    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');
    ...
  3. Replies
    5
    Views
    3,740

    stringstream + iomanip

    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...
  4. Issue overloading stream Operator/Manipulator

    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...
  5. Replies
    6
    Views
    1,674

    Excellent! All is well. Thanks a bunch.

    Excellent! All is well. Thanks a bunch.
  6. Replies
    6
    Views
    1,674

    Subitem 0 or 1 for a single column?

    Subitem 0 or 1 for a single column?
  7. Replies
    6
    Views
    1,674

    Details/Report view is what I am going for. When...

    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...
  8. Replies
    6
    Views
    1,674

    List view without images...

    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...
  9. Replies
    4
    Views
    1,336

    settings_file.clear(), actually, is what did it....

    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.
  10. Replies
    4
    Views
    1,336

    settings_file.clear(), actually, is what did it....

    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.
  11. Replies
    4
    Views
    1,336

    wierd fstream problems...

    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
    ...
  12. So, you want to add more data/parameters to...

    So, you want to add more data/parameters to messages before they get passed to the Window Procedures?
  13. Well, the program ends when you tell it to end....

    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...
  14. It's certainly possible, yes. Whether or not you...

    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...
  15. Replies
    4
    Views
    1,059

    The height corresponds to the list portion?...

    The height corresponds to the list portion? That's annoying. Thanks for the tip.
  16. Replies
    4
    Views
    1,059

    Problem with Combo Box

    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...


    ...
  17. Replies
    5
    Views
    3,835

    Well, in this case, it's a pseudo-standalone...

    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...
  18. Replies
    2
    Views
    3,785

    Yeah, I kept searching after posting this and...

    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...
  19. Replies
    5
    Views
    3,835

    Prevent Multiple Instances

    Anybody know how I would go about detecting other instances of a program, to ensure that only one instance is ever running?
  20. Replies
    36
    Views
    2,741

    Assuming you did call malloc or calloc initially...

    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...
  21. Replies
    36
    Views
    2,741

    Your call to realloc is fine (aside from not...

    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 =...
  22. Replies
    6
    Views
    1,846

    Not to mention that the solution to that equation...

    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) %...
  23. Replies
    2
    Views
    3,785

    Extended Desktop Dimensions

    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...
  24. It certainly would be more efficient to just use...

    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.
  25. Preprocessor trick for variable number of args

    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)...
Results 1 to 25 of 257
Page 1 of 11 1 2 3 4