Search found 191 matches

by alys666
Thu Aug 01, 2019 9:31 pm
Forum: C++ Development
Topic: Strang Socket Crash over Thread
Replies: 6
Views: 110

Re: Strang Socket Crash over Thread

thread #11, stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
the address 0x18 is definitely wrong, looks like access violation
in body of libsystem_pthread.dylib`pthread_mutex_lock.
looks like attempt to lock deleted mutex object.
by alys666
Wed Jul 24, 2019 5:48 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 7
Views: 170

Re: wxExecute and wxProcess: Dealing with Interactive commands

in your particular case you have patterns
examine files in directory*?
remove*?
where asterisk means - any substring.
it's what you have to search
by alys666
Wed Jul 24, 2019 3:56 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 7
Views: 170

Re: wxExecute and wxProcess: Dealing with Interactive commands

why no way... your reader thread reads output and parses it...if it finds some specific substring or symbol... in your case '?', it sends message to main thread - "user_asks_confirmation"...main thread receives it and opens dialog with buttons "yes"-"no". in button handlers you write "y" or "n" to p...
by alys666
Wed Jul 24, 2019 3:13 pm
Forum: C++ Development
Topic: wxExecute and wxProcess: Dealing with Interactive commands
Replies: 7
Views: 170

Re: wxExecute and wxProcess: Dealing with Interactive commands

there are input and output streams of the process. process sends to you text strings via its output stream and reads your text input via process input stream. see functions GetInputStream, GetOutputStream of the process. one gives you a stream - with read functions(its what the process is writing to...
by alys666
Tue Jul 23, 2019 4:18 am
Forum: Compiler / Linking / IDE Related
Topic: How do I know which one (or what group) of .a files to link to?
Replies: 6
Views: 121

Re: How do I know which one (or what group) of .a files to link to?

there is a programm - wx-config it intended to provide you with specific information(names, paths, options...) for wxWidgets application building process. did you read about it? https://wiki.wxwidgets.org/Wx-Config wx-config currently doesn't work with the mingw family of compilers. yes.. i already...
by alys666
Tue Jul 23, 2019 4:05 am
Forum: Compiler / Linking / IDE Related
Topic: How do I know which one (or what group) of .a files to link to?
Replies: 6
Views: 121

Re: How do I know which one (or what group) of .a files to link to?

there is a programm - wx-config it intended to provide you with specific information(names, paths, options...) for wxWidgets application building process. did you read about it? https://wiki.wxwidgets.org/Wx-Config ps. aah. sorry. it's for linux systems... but you're using the pure Windows wxWidgets...
by alys666
Wed Jul 03, 2019 11:44 pm
Forum: C++ Development
Topic: Custom Event Isn't Being Caught
Replies: 19
Views: 351

Re: Custom Event Isn't Being Caught

a bit of code mentoring 1. do not use this C-style header protection - #ifndef MYABCS_ID_H #define MYABCS_ID_H ... #endif use everywhere: #pragma once at the beginning 2. to decrease header dependencies, do not include excessive headers in your header file, include only needed for declarations in th...
by alys666
Wed Jul 03, 2019 10:46 am
Forum: C++ Development
Topic: Custom Event Isn't Being Caught
Replies: 19
Views: 351

Re: Custom Event Isn't Being Caught

and check other headers for this bug - your gnrcabt.h .. const int ID_INFO = wxNewId(); //<this is dynamic call, and values will be different in copies const int ID_ART = wxNewId(); const int ID_LOG = wxNewId(); const int CREDIT_DEVELOPER = 100; //<this works because value will be the same everywher...
by alys666
Wed Jul 03, 2019 10:35 am
Forum: C++ Development
Topic: Custom Event Isn't Being Caught
Replies: 19
Views: 351

Re: Custom Event Isn't Being Caught

in your abc.h there are definitions const int ID_EXIT = wxNewId(); const int ID_ABC = wxNewId(); const int ID_FOOD = wxNewId(); const int ID_ANIMALS = wxNewId(); const int ID_MUSIC = wxNewId(); const int ID_TOYS = wxNewId(); const int ID_HELP = wxNewId(); const int ID_ABOUT = wxNewId(); const int ID...
by alys666
Tue Jul 02, 2019 8:05 pm
Forum: C++ Development
Topic: how to make narrow window?
Replies: 5
Views: 124

Re: how to make narrow window?

... i live in ubuntu 16.04, not windows...
it very looks like effect of wxAuiManager. If i do not add this control to wxAuiManager, then i can make it as small as i need.
by alys666
Tue Jul 02, 2019 4:04 pm
Forum: C++ Development
Topic: how to make narrow window?
Replies: 5
Views: 124

Re: how to make narrow window?

Hi! according to docs SetSizeHints is deprecated for non top windows
by alys666
Tue Jul 02, 2019 12:38 pm
Forum: C++ Development
Topic: how to make narrow window?
Replies: 5
Views: 124

how to make narrow window?

goal: i created custom painted control using wxWIndow as base class. everything is fine, but it does not want to be narrower than ~40 pixels, when i need 12-16. ctor code: MarksBar::MarksBar(wxWindow* fpar): wxWindow (fpar, -1, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE) { this->SetM...
by alys666
Mon Jul 01, 2019 11:40 pm
Forum: C++ Development
Topic: Check if wxString Contains Alphabetic Characters Only
Replies: 6
Views: 177

Re: Check if wxString Contains Alphabetic Characters Only

Interesting solution. Thank you. it's how compilers use to check for alpha string, or identifiers(with added conditions for numbers and '_') . it will work everywhere, when comparison operation for char type is legal. unicode is just 16 bit numeric type, and latin alphabet has there the same codes ...
by alys666
Sun Jun 30, 2019 2:46 pm
Forum: C++ Development
Topic: wxStyledTextCtrl: Get Text Encoding Type
Replies: 4
Views: 91

Re: wxStyledTextCtrl: Get Text Encoding Type

there are original Scintilla docs - https://www.scintilla.org/ScintillaDoc.html
wxStyledTextCtrl is just a wraper
by alys666
Sun Jun 30, 2019 2:20 pm
Forum: C++ Development
Topic: Check if wxString Contains Alphabetic Characters Only
Replies: 6
Views: 177

Re: Check if wxString Contains Alphabetic Characters Only

if you need speed, just scan the string with custom function isAlphaChar(..) regular expressions are slow bool isAlphaChar(char fch){ return (fch >='a' && fch <='z') || (fch>='A' && fch<='Z'); } bool isAlphaString(const wxString &fs){ for(int i=0; i<fs.Length(); ++i){ if(!isAlphaChar(fs[i])) return ...