Hi,
I declare a std::map in my header file, but when I go to add an item to it in the class it crashes as it is null.
header file
class x
{
public:
void DoStuff();
private:
std::map<int, int> sample_data;
};
source file
void DoStuff()
{
//crashes here as sample_data is null...
Is there a way to prevent the file save or open dialog from changing the systems current working folder? I know ofNoChangeDir will change it back when it closes, but is there a way to stop the change completely?
Is there a way to prevent the system from changing the current working directory entirely while using a file save or file open dialog. I know ofNoChangeDir will restore it to the original working folder when the dialog closes, but is there a way to prevent the change entirely?
hi,
I set my columns to equal the width of the string grid, yet when I click on the right side of the grid, it seems to scroll or jump over, obscuring the left most columns and displaying canvas that does not have columns. there are no scroll bars either to indicate that there would be more...
I guess I should have said I need cells that allow for multiple lines of text.
each row, regardless of number of columns needs to be able to have two or more lines of text within it.
Hi,
I have a dll I created. When I am debugging it, when I step into a particular function and only that function, it forces me into the CPU view. I can step through the source again once the program exits that function. How do I turn this off?
No, I dont have a close button. Another strange thing is that I have 2 buttons with no code behind them and when I click them the form closes as well. Even when I press enter in an edit box that has focus the form closes.
I have a form that when it loads everything is fine.
When ever I press the enter key they FormClose function is called. I am not calling Close() anywhere. I know it has something to do with the focus becuase if I click on a button then press enter everything is ok, but if I dont click on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.