Search:

Type: Posts; User: BrianK

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Well, I suppose that's the question. How do I...

    Well, I suppose that's the question. How do I destroy foo? It's a class member and that class needs to stick around & foo *may* need to be filled again with new data? Outside of making foo point...
  2. For the record, I have a class that holds a...

    For the record, I have a class that holds a string. That string is a file (after it's been pre-processed - I can't simply leave the data on disk). The class holds the file as a string until it's...
  3. Can you free memory allocated by a std::string?

    Say I have:

    string foo = <a string that is 1 million chars long>;

    then later I want no longer need the long foo, and would like that memory back. Is there a way to tell foo to be smaller?
    ...
  4. Replies
    4
    Views
    845

    ;) as it turns out, "createScreenConfig" gets...

    ;)
    as it turns out, "createScreenConfig" gets called more than once, and even though I pass "num" in so that I don't create the same thing twice, my test was using [0] instead of [num], so create...
  5. Replies
    4
    Views
    845

    at the point that I'm using it, "useme" points to...

    at the point that I'm using it, "useme" points to an array, so useme[x]->func() would be incorrect... being that the subscipt gets you to an actual memory location.
  6. Replies
    4
    Views
    845

    constructor not allocating array properly?

    This is a weird one... not sure why this is happening.

    In my .h, in my class, in the public section, I have the following:


    CButton* useme;

    in my class constructor, I have:

    useme =...
  7. Great! thanks for the info, guys. ;)

    Great! thanks for the info, guys. ;)
  8. MFC: How do you check if a directory exists before creating?

    I'm creating a directory with:


    temp.Format("%s\\%d",path,p);
    CreateDirectory(temp,NULL);

    and I'd like to check to see if the create failed, but it fails if the directory exists, so I'd...
  9. hmm... switched everything to strings instead of...

    hmm... switched everything to strings instead of CStrings.

    working now. :P
  10. ARGH: getline wants 3 args when I give 2, and 2 args when I give 3?

    I have this in a function:



    CString path;
    ifstream fin;
    fin.open((LPCSTR)inputPath,ios::in);
    ....
    getline(fin,path,'\n');
  11. I'm not sure if I understand you. Before I did...

    I'm not sure if I understand you. Before I did the /I thing I mentioned above, I added the files to my solution explorer by right-clicking & chosing "Add existing item"
    Then I selected both the...
  12. well, I've found that I can add this: /I...

    well, I've found that I can add this:

    /I "../Common"

    to the Additional command line options in the C/C++ section of the project properties. Is this the best way?
  13. newbie q: include files outside the project dir?

    ::sigh:: I know this must be documented somewhere, but I can't seem to find it, so..

    I have several .h/.C files in a common directory. I want to include them by just #include "file.h"

    Where is...
  14. Replies
    0
    Views
    1,904

    MFC: CStrings & binary files question(s)

    I have a small class:


    class Screen
    {
    public:
    Screen();

    Screen& operator=(Screen& src);
  15. MFC: Multiple clicks shows multiple bitmaps - how?

    I want to click a button and have the following show up:

    after one click:
    http://hero.com/~briank/misc/1.gif

    after two clicks:
    http://hero.com/~briank/misc/2.gif

    after three clicks:...
  16. Thank you. Much appreciated. ;)

    Thank you. Much appreciated. ;)
  17. how do you make a group box with CreateWindow?

    I'm having trouble getting this together (maybe I'm just cross-eyed from looking at the screen too long ;))

    Anyone have this fresh in their head & could post an example?

    Thanks.
  18. Ahh, that's exactly what I was looking for. ...

    Ahh, that's exactly what I was looking for. Thanks!
  19. How to specify "path ellipsis" for static text in the code

    I'm generating some static text on the fly in my program & would like to use the path ellipsis attribute (like the one you can select in the properties tab in the GUI). How do you do that in the...
  20. Got it working - thanks! The only thing I'll...

    Got it working - thanks!

    The only thing I'll add for anyone else that attempts this, is that you need to do the Invalidate(); UpdateWindow(); after you change the color in the buttonclick()...
  21. MFC: Change the color of static text with button press?

    I've got some text that I want to change from red to green when the user pushes a button. Currently, I'm coloring the text like so:

    // in OnInitDialog:


    ...
  22. Replies
    0
    Views
    1,121

    How much to pay a technical writer?

    We're going to hire someone to write our software manuals. Never having done such a thing, how much do technical writers cost? Should I expect to pay them by the hour? By the job? Are there...
  23. Well, that's just it, it doesn't do anything...

    Well, that's just it, it doesn't do anything because everything I've tried doesn't work & brings up those errors I described earlier. All I really want it to do is tell the program which type of...
  24. Ahh, that's a nice one. I like that. Thanks for...

    Ahh, that's a nice one. I like that. Thanks for the suggestion.
  25. To clarify, I need between one and n of the image...

    To clarify, I need between one and n of the image I have above. The input must be entered as a set, in other words: horz, vert, and mask together make one input.

    I'm going to look into Treeview...
Results 1 to 25 of 72
Page 1 of 3 1 2 3