Search found 148 matches

by Wanderer82
Sun Jun 07, 2020 12:09 pm
Forum: C++ Development
Topic: How to control behavior of Cancel button and Close Window in wxGetTextFromUser
Replies: 7
Views: 256

Re: How to control behavior of Cancel button and Close Window in wxGetTextFromUser

Ok. But what exactly do you mean by "rebuild wxWidgets"? I somehow have the feeling that I don't have or understand the entire "concept" :roll: What I also don't understand and have been wondering for years actually is: In the installing process of an IDE... why do I have to "compile" for example Mi...
by Wanderer82
Sun Jun 07, 2020 11:28 am
Forum: C++ Development
Topic: How to control behavior of Cancel button and Close Window in wxGetTextFromUser
Replies: 7
Views: 256

Re: How to control behavior of Cancel button and Close Window in wxGetTextFromUser

Well, it was just a general question about how / where these wxWidgets resources have been defined / written and if they're editable to one's needs or if it's just possible the way you said. I absolutely don't have an understanding about how these wxWidget resources work. I thought that there might ...
by Wanderer82
Sun Jun 07, 2020 9:48 am
Forum: C++ Development
Topic: How to control behavior of Cancel button and Close Window in wxGetTextFromUser
Replies: 7
Views: 256

Re: How to control behavior of Cancel button and Close Window in wxGetTextFromUser

Ok I see. But as a general question (of a beginner): These wxWidget resources (buttons, message boxes etc.) are also defined / written somewhere. Why isn't it possible to edit these? Or is it possible?
by Wanderer82
Sat Jun 06, 2020 9:30 pm
Forum: C++ Development
Topic: How to control behavior of Cancel button and Close Window in wxGetTextFromUser
Replies: 7
Views: 256

How to control behavior of Cancel button and Close Window in wxGetTextFromUser

Well, actually I don't really understand the behavior of wxGetTextFromUser. In my opinion the "Cancel" button and the "Close" cross should behave independently from the user's input. But it doesn't work like this. I try to catch a user typing only a space in the text field which should disply a Mess...
by Wanderer82
Sat May 09, 2020 7:55 pm
Forum: C++ Development
Topic: Uninitialized variable - warning
Replies: 7
Views: 378

Re: Uninitialized variable - warning

Ok ok, I'll just do it :mrgreen:
by Wanderer82
Sat May 09, 2020 10:29 am
Forum: C++ Development
Topic: Uninitialized variable - warning
Replies: 7
Views: 378

Re: Uninitialized variable - warning

I still don't understand why I should initialize this value. I mean, I can initialize it with basically any value, it doesn't matter. Because this value is only used in the last else-clause (and put into a function) if one of the if-clauses before is true. And only inside these if-clauses the Option...
by Wanderer82
Sat May 09, 2020 9:08 am
Forum: C++ Development
Topic: Uninitialized variable - warning
Replies: 7
Views: 378

Re: Uninitialized variable - warning

Oh my ... Right, I forgot to mention the variable :oops: Nope, it's Option1 and Option2. As for your suggestion: Yes, in the code I posted it's true, that was a mistake of me shortening the code to make it easier to read. I deleted some more code and also accidentally deleted the line where "Options...
by Wanderer82
Fri May 08, 2020 7:57 pm
Forum: C++ Development
Topic: Uninitialized variable - warning
Replies: 7
Views: 378

Uninitialized variable - warning

Hello My compiler gives me the "variable may be used uninitialized in function" warning. I understand it. I declare a variable in the beginning and then it first gets initialized inside an "if" statement but only if one of the statements is true. So this code opens a file from which then some number...
by Wanderer82
Tue May 05, 2020 11:45 am
Forum: C++ Development
Topic: One file - many users (program instances) should write to it
Replies: 17
Views: 744

Re: One file - many users (program instances) should write to it

Okay, I will maybe try that once.

But I feel I have found the solution using CreateFile, it works like a charm :-)
by Wanderer82
Sun May 03, 2020 7:21 pm
Forum: C++ Development
Topic: One file - many users (program instances) should write to it
Replies: 17
Views: 744

Re: One file - many users (program instances) should write to it

Aren't the multiple threads also not surely going to start at the same time? With the second instance of my application I would also have to be able to start the same function at exactly the same time as the second instance does. How can I do this? How can I start two instances of my application at ...
by Wanderer82
Sun May 03, 2020 4:18 pm
Forum: C++ Development
Topic: One file - many users (program instances) should write to it
Replies: 17
Views: 744

Re: One file - many users (program instances) should write to it

Hello Nunki You know, when I first started this project / programme, I was really just playing around. I don't write programs for a living, just for fun, so I was really a beginner, which I actually still am a bit, I would say. I have a lot of half-knowledge, I guess, and some of my code was more li...
by Wanderer82
Sun May 03, 2020 11:27 am
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 556

Re: Scrollbar appears in the panel but doesn't work

Hm, I did such a thing. My "Create"-function looks like this: Create(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, _T("wxID_ANY")) And then: ScrolledWindow1 = new wxScrolledWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL ); ScrolledWindow1->SetMax...
by Wanderer82
Sun May 03, 2020 8:49 am
Forum: C++ Development
Topic: One file - many users (program instances) should write to it
Replies: 17
Views: 744

Re: One file - many users (program instances) should write to it

Thanks a lot for your answer... so my way of using CreateFile seems to be fine as long as I need the program to work in Windows only, which in my case is the case :-) Thanks for the hint to suppress log messages. That might be very helpful to know. I think the explanation of how SQLite does it, is a...
by Wanderer82
Sat May 02, 2020 6:50 pm
Forum: C++ Development
Topic: One file - many users (program instances) should write to it
Replies: 17
Views: 744

Re: One file - many users (program instances) should write to it

I've shocked you ;-) So, why is using a pipe to make sure that only one instance of my program can change a file, horrible? :roll: Okay, your suggestion sounds interesting. Although, the "write_ecl" open mode only works when creating a new file not for already existing ones. But maybe it might work ...
by Wanderer82
Sat May 02, 2020 5:39 pm
Forum: C++ Development
Topic: One file - many users (program instances) should write to it
Replies: 17
Views: 744

Re: One file - many users (program instances) should write to it

Hi Doublemax Thank you for chiming in. Well, I haven't been coding for the last two years so a lot of what I learned isn't really right on my mind anymore. But anyways, today I tried a simple piece of code using pipes to communicate between different processes. What I've learned so far is, that if I...