Search found 17 matches

by JOHI
Sat Apr 17, 2021 9:43 am
Forum: C++ Development
Topic: wxLocale equivalent of _configthreadlocale(_ENABLE_PER_THREAD_LOCALE)
Replies: 2
Views: 563

Re: wxLocale equivalent of _configthreadlocale(_ENABLE_PER_THREAD_LOCALE)

Thank you very much for the info.
I created a local wxLocale object to do what needs to be done and it worked properly.
Best Regards,
Johi.
by JOHI
Tue Apr 06, 2021 6:32 pm
Forum: C++ Development
Topic: wxLocale equivalent of _configthreadlocale(_ENABLE_PER_THREAD_LOCALE)
Replies: 2
Views: 563

wxLocale equivalent of _configthreadlocale(_ENABLE_PER_THREAD_LOCALE)

Hello, I have read quite a lot of threads and documentation about wxLocale, but it remains a subject that still remains unclear. So here is what i want to do: some of my threads including the main gui thread need to use the current locale (to use the proper decimal separator). Solution: create a wxL...
by JOHI
Sat Jul 18, 2020 8:01 am
Forum: C++ Development
Topic: How to build an e-mail client?
Replies: 1
Views: 464

How to build an e-mail client?

Hello, I need the send and receive E-mails from a wxWidgets application. I tested a bit with native sockets (no SMTP), made a connection to pop3 email server and was able to process received messages. Sending I did not do as my mail server does only do SMTP. Anyway, working this way is not very effe...
by JOHI
Sun Jun 14, 2020 8:42 am
Forum: C++ Development
Topic: Conversion from single byte char (0x0b and others) to Unicode
Replies: 5
Views: 657

Re: Conversion from single byte char (0x0b and others) to Unicode

Hello PB, Thank you for the detailed analysis. I think I found why the conversion fails: The ascii range 0..31 are in fact control characters. This range was in the beginning of the PC era also used for special symbols by some OEM PC suppliers to extend the number of visual symbols. As there is a &q...
by JOHI
Mon Jun 08, 2020 8:08 am
Forum: C++ Development
Topic: Conversion from single byte char (0x0b and others) to Unicode
Replies: 5
Views: 657

Conversion from single byte char (0x0b and others) to Unicode

Hello, I am using wxWidgets 3.1.2. on Win10 pro 64bit Visual Studio 2019. My objective is to display a character I received from a digital device (single byte character set encoded, codepage 437) in a wxGrid table. I need to send the grid data to the device and display the read data in the grid. Wit...
by JOHI
Sun Nov 17, 2019 2:12 pm
Forum: C++ Development
Topic: wxLocale: how to use multiple locales for wxString?
Replies: 0
Views: 7090

wxLocale: how to use multiple locales for wxString?

Hello, I have an application that needs to use "C" style locale instead of the default locale. The reason is that for my default loclale PI converts to 3,1415 instead of 3.1415. So in C (win 32), i use to use the C' locale: _locale_t localeC = _create_locale(LC_ALL, "C"); wchar_t...
by JOHI
Sat Sep 21, 2019 7:50 am
Forum: C++ Development
Topic: wxDatagramSocket unable to receive reply if reply port is not receive port at partner side
Replies: 3
Views: 625

wxDatagramSocket unable to receive reply if reply port is not receive port at partner side

Hello: I am trying to setup a communication between a PC and an Arduino: To test I set up a basic echo application where the Arduino echos the PC messages. Using wxDatagramSocket, the echo works as long as the Arduino answers from the Arduino port that received the message. However, if the Arduino a...
by JOHI
Sat Sep 21, 2019 7:17 am
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 11
Views: 2290

Re: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

Hello Manolo, Sorry for the late reply. As VC2008 debugger is for me a lot more convenient compared to CodeBlocks/Gcc i sticked to VC2008 and used CodeBlocks for the resources part. But indeed, for sure your solution would work. I might even need a similar solution for the fact that wxDatagramsocket...
by JOHI
Sun Jun 02, 2019 6:25 pm
Forum: Compiler / Linking / IDE Related
Topic: wxSmith not changing .cpp any more.
Replies: 2
Views: 690

Re: wxSmith not changing .cpp any more.

Ok, thank you.
Best Regards,
Johi.
by JOHI
Sun Jun 02, 2019 8:32 am
Forum: Compiler / Linking / IDE Related
Topic: wxSmith not changing .cpp any more.
Replies: 2
Views: 690

wxSmith not changing .cpp any more.

Hello, I made an application with wxSmith & some menu resources, all went ok. Now for some reason, if I modify my resources in deh wxSmith editor, wxSmith is no longer updating my .cpp. I do not recall modifying the code that was automatically generated (or any other delicate part of my project)...
by JOHI
Sun Jun 02, 2019 7:28 am
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 11
Views: 2290

Re: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

by ONEEYEMAN » Fri May 31, 2019 4:32 pm Hi, JOHI wrote: ↑ Fri May 31, 2019 8:05 am Hello @Manolo, Hello @Oneeyeman. Thank you for your answer. In fact I already have code:blocks operational with VC & GCC compilers, I am using both on my machines. The major problem I ran into with the Microsoft ...
by JOHI
Fri May 31, 2019 6:05 am
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 11
Views: 2290

Re: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

Hello @Manolo, Hello @Oneeyeman. Thank you for your answer. In fact I already have code:blocks operational with VC & GCC compilers, I am using both on my machines. The major problem I ran into with the Microsoft compiler is that the debugger one needs to use (cdb) does not come via VC2008 pro. (...
by JOHI
Wed May 29, 2019 7:33 pm
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 11
Views: 2290

Re: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

Hello, @Manolo, Thank you for your answer. So the only way to get rid of these pages of warning is to go to another compiler, there is no switch within WxWidgets or GCC do disable these warnings? I am used to Microsoft compilers and there #pragma is used to disable warnings but it seems TDM-GCC is u...
by JOHI
Mon May 27, 2019 6:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 11
Views: 2290

Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

Hello, I installed wxWidgets 3.0.4 with code:blocks 17.12 TDM-GCC-64 on Win7.0. I generated a default gui wxWidgets application using the code:blocks wxWidgets wizzard. Compiling generates 50+ depreicated warnings ? Do I have to take these warning serious or just kick them out disabling the deprecia...
by JOHI
Fri Aug 10, 2018 7:27 am
Forum: C++ Development
Topic: wxAutoBufferedPaintDC stores AxisOrientation, wxPaintDC does not??
Replies: 1
Views: 486

wxAutoBufferedPaintDC stores AxisOrientation, wxPaintDC does not??

Hello forum members, If I understand the documentation correctly, changing from wxPaintDC to wxAutoBufferedPaintDC should only yield in added buffered drawing, all other dc functions remain the same. wxBufferedPaintDC is a buffered version of wxPaintDC . Simply replace wxPaintDC with wxBufferedPaint...