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...
Type: Posts; User: BrianK
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...
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...
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?
...
;)
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...
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.
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 =...
Great! thanks for the info, guys. ;)
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...
hmm... switched everything to strings instead of CStrings.
working now. :P
I have this in a function:
CString path;
ifstream fin;
fin.open((LPCSTR)inputPath,ios::in);
....
getline(fin,path,'\n');
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...
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?
::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...
I have a small class:
class Screen
{
public:
Screen();
Screen& operator=(Screen& src);
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:...
Thank you. Much appreciated. ;)
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.
Ahh, that's exactly what I was looking for. Thanks!
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...
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()...
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:
...
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...
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...
Ahh, that's a nice one. I like that. Thanks for the suggestion.
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...