Search found 43 matches

by norisknodisk
Sun Aug 31, 2014 1:38 pm
Forum: C++ Development
Topic: incorrect md5 hash with wxString & Unicode
Replies: 3
Views: 708

Re: incorrect md5 hash with wxString & Unicode

well... which lib do you use?
by norisknodisk
Sun Aug 31, 2014 5:27 am
Forum: C++ Development
Topic: incorrect md5 hash with wxString & Unicode
Replies: 3
Views: 708

incorrect md5 hash with wxString & Unicode

Hello folks, I use a md5hash generator function from: http://www.zedwood.com/article/cpp-md5-function in my programm. I noticed that it works correctly as long as the string which I want to generate a hash from contains only standard latin alphabet characters, but once I want to get real unicode has...
by norisknodisk
Mon Jul 28, 2014 12:13 pm
Forum: C++ Development
Topic: can not input chinese characters in wxTextBox
Replies: 4
Views: 906

Re: can not input chinese characters in wxTextBox

well oddley enough, the problem has simply disapperared - I didnt change the code one bit - maybe it was the reboot?...
by norisknodisk
Sat Jul 26, 2014 6:10 pm
Forum: C++ Development
Topic: can not input chinese characters in wxTextBox
Replies: 4
Views: 906

Re: can not input chinese characters in wxTextBox

still the same - just the squares.

i read a bit and it seems you are definetly right; its a font problem - but why does it display thai characters just fine?
by norisknodisk
Sat Jul 26, 2014 6:23 am
Forum: C++ Development
Topic: can not input chinese characters in wxTextBox
Replies: 4
Views: 906

can not input chinese characters in wxTextBox

Hello, I am using wxWidgets 2.9.5 on a Windows 7 PC. I have written a programm a while back which I use to study languages - obviously I compiled wxWidgets with Unicode support - it worked perfectly fine for Thai but now that I tried to input Chinese characters: wxTextCtrl, wxRichTextCtrl wont let m...
by norisknodisk
Wed Jan 22, 2014 12:23 pm
Forum: C++ Development
Topic: Couldn't retrive information about entry xyz in listbox
Replies: 2
Views: 541

Re: Couldn't retrive information about entry xyz in listbox

thanks... why didn't i see that myself :oops:
by norisknodisk
Wed Jan 22, 2014 9:25 am
Forum: C++ Development
Topic: Couldn't retrive information about entry xyz in listbox
Replies: 2
Views: 541

Couldn't retrive information about entry xyz in listbox

Hello, I have written a piece of code that opens a txt file, reads in the dataset inside it and saves it in a sqlite3 db. The entries of the database are also shown in a wxListCtrl. Later on, after the user has added more datasets to the textfile, I want him to be able to open it again with my progr...
by norisknodisk
Mon Jan 13, 2014 7:42 pm
Forum: C++ Development
Topic: wxRichtextCtrl tab key
Replies: 2
Views: 555

Re: wxRichtextCtrl tab key

I changed the code as suggested. Now I don't get access violations, but when i press the tab key, it still only results in a large space being inserted in the richtextctrl instead of the focus being passed to the next element. EDIT: Ok it works and i finally really understand the point of event.skip...
by norisknodisk
Mon Jan 13, 2014 6:25 pm
Forum: C++ Development
Topic: wxRichtextCtrl tab key
Replies: 2
Views: 555

wxRichtextCtrl tab key

Hello, after reading the tab sample, google and the forum for the past three hours over and over again, I still haven't figured it out... How do I get my wxRichTextCtrl to pass on the focus to the next control in my dialog? I create a wxRichTextCtrl in the constructor of my class with the wxWANTS_CH...
by norisknodisk
Fri Nov 22, 2013 9:09 am
Forum: C++ Development
Topic: wxTimer Threads No GUI-Update
Replies: 13
Views: 2304

Re: wxTimer Threads No GUI-Update

After reading the previous post by manolo and looking at the 'worker thread example' in the samples folder, I decided not to use this strange virutal OnSoundStopped method provided. I simply wrote did this: while(engine->isCurrentlyPlaying(tmppath.mb_str())) { StaticTextTop->GetParent()->Update(); w...
by norisknodisk
Thu Nov 21, 2013 4:27 pm
Forum: C++ Development
Topic: wxTimer Threads No GUI-Update
Replies: 13
Views: 2304

Re: wxTimer Threads No GUI-Update

Yes, I am a bit overwhelmed with this thread / callback / static / virtual thingy... & then somehow meddling it alltogether so it works :)
I will keep on reading a little more maybe it becomes clearer at a later stage. Once I found the solution I will post it - Thank you for your help!
by norisknodisk
Thu Nov 21, 2013 11:33 am
Forum: C++ Development
Topic: wxTimer Threads No GUI-Update
Replies: 13
Views: 2304

Re: wxTimer Threads No GUI-Update

I tried to implement your tip, declaring the function static before, but as it is a virtual function, the compiler didn't allow it.
by norisknodisk
Thu Nov 21, 2013 10:57 am
Forum: C++ Development
Topic: wxTimer Threads No GUI-Update
Replies: 13
Views: 2304

Re: wxTimer Threads No GUI-Update

Hello, unfortunately I have to wait till the sound has played - as they vary in length and it would mess up the presentation. I have now spend considerable amount of time trying to make this work but somehow I can't get a breakthrough. here is what i got ... in the constructor: this->Connect( m_time...
by norisknodisk
Wed Nov 20, 2013 5:10 pm
Forum: C++ Development
Topic: wxTimer Threads No GUI-Update
Replies: 13
Views: 2304

Re: wxTimer Threads No GUI-Update

I changed it so that a pointer to the instance is of Soundreciver, which I created is passed to the function, and it "runs" but now I am back to square one as I get the error: wxThread::Ismain() failed wxTimer can only be started from the main thread. is there no way of forcing the program flow to b...
by norisknodisk
Wed Nov 20, 2013 4:40 pm
Forum: C++ Development
Topic: wxTimer Threads No GUI-Update
Replies: 13
Views: 2304

Re: wxTimer Threads No GUI-Update

Hello, thank you for the tip ! However, I still get run-time errors. I changed my code to look like this: // soundreciver class class Soundreciver : public irrklang::ISoundStopEventReceiver, wxDialog { public: Soundreciver(UI_BRAINWASH* par){ this->parent = par; m_timer = new wxTimer(this,ID_BRAINWA...