Search found 200 matches

by Natulux
Thu Jan 09, 2020 9:40 am
Forum: C++ Development
Topic: WebSocket Server
Replies: 3
Views: 381

Re: WebSocket Server

Libwebsocket might be more powerfull, but it lets you know every now and then that it is made by and for linux users and I had a lot of frustration trying to use it on my windows machine in a C++ project. If you are searching for a websocket lib and you are using C++ you might consider using "Simple...
by Natulux
Wed Jan 08, 2020 3:45 pm
Forum: C++ Development
Topic: Implementing "Append", "Insert" and "Remove"
Replies: 10
Views: 342

Re: Implementing "Append", "Insert" and "Remove"

Second, I tried to bind mouse events to the type combo box and it appears not to work (on Windows). It does working on GTK. I think I had a familiar problem, when I created a screenshot tool. I wanted to draw rectangles on a transparent frame, but I couldn't catch mouse events on it. Eventually I e...
by Natulux
Wed Jan 08, 2020 3:08 pm
Forum: Platform Related Issues
Topic: directory and file permission
Replies: 1
Views: 99

Re: directory and file permission

I think I solved the problem. I re-set the user permission for the root directory (and thus for all sub directories and files, now and in future) and gave full access. At least all newly created files can now be deleted by wxW, which is good enough for me. I guess some windows security update messed...
by Natulux
Wed Jan 08, 2020 11:03 am
Forum: Platform Related Issues
Topic: directory and file permission
Replies: 1
Views: 99

directory and file permission

Hey guys I like to use log files, each one created with the date of creation in its name, so that it doesn't grow to big. Of course this needs cleaning up, so I automatically delete files older than one month. On my windows x64 machine, this used to work like expected, until now. Suddenly my log dir...
by Natulux
Wed Oct 30, 2019 10:12 am
Forum: C++ Development
Topic: wxWidgets 3.1.1 and german letters
Replies: 30
Views: 3180

Re: wxWidgets 3.1.1 and german letters

Update: If someone came here for a solution of a similar problem, here is what turned out to be my problem. Prior to this I used wxWidgets 3.1.0 with Visual Studio 2015 or below. Together with the upgrade to a higher wxWidgets Version I also used another compiler/IDE: VisualStudio 2017 and VisualStu...
by Natulux
Wed Oct 30, 2019 9:54 am
Forum: Compiler / Linking / IDE Related
Topic: VS2019 and utf8 file encoding
Replies: 5
Views: 694

Re: VS2019 and utf8 file encoding

Update: If someone came here for a solution of a similar problem, here is what turned out to be my problem. Prior to this I used wxWidgets 3.1.0 with Visual Studio 2015 or below. Together with the upgrade to a higher wxWidgets Version I also used another compiler/IDE: VisualStudio 2017 and VisualStu...
by Natulux
Wed Oct 09, 2019 7:16 am
Forum: C++ Development
Topic: WebSocket Server
Replies: 3
Views: 381

Re: WebSocket Server

Just use libwebsockets in your application. You should be able to build it on all popular platforms, as a 3rd-party library which will be used for your app. Thank you for the hint! I'll have a look into it. I hope I can include this in my static build, but on first glance it provides everything I n...
by Natulux
Tue Oct 08, 2019 12:41 pm
Forum: C++ Development
Topic: WebSocket Server
Replies: 3
Views: 381

WebSocket Server

Hey. I used to use wxSocketBase to host a local server and (maybe) misused it even as HTTP server. Now I want to add a WebSocket server functionality, but I am not sure if the wxSockets are suited for this case. My client will be javascript from a 'webside', which my C++/wxWidgets program will host ...
by Natulux
Tue Oct 01, 2019 12:09 pm
Forum: Compiler / Linking / IDE Related
Topic: VS2019 and utf8 file encoding
Replies: 5
Views: 694

Re: VS2019 and utf8 file encoding

I have found no setting in VS2019 and people from stackoverflow also didn't know about it. ( https://stackoverflow.com/questions/58163785/vs2019-compiler-misinterprets-utf8-without-bom-file-as-ansi ) So the only solution was to loop through the directory, reqriting the files as UTF-7 and prepend the...
by Natulux
Fri Sep 27, 2019 6:48 am
Forum: Compiler / Linking / IDE Related
Topic: VS2019 and utf8 file encoding
Replies: 5
Views: 694

Re: VS2019 and utf8 file encoding

I haven't tried it, but this sounds promising: https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=vs-2019 Interesting one. It says: By default, Visual Studio detects a byte-order mark to determine if the source file is in an encoded Uni...
by Natulux
Thu Sep 26, 2019 1:42 pm
Forum: Compiler / Linking / IDE Related
Topic: VS2019 and utf8 file encoding
Replies: 5
Views: 694

VS2019 and utf8 file encoding

Hey. I am migrating to wxWidgets 3.1.2 with VS Community 2019 and suddenly my german umlaut is displayed utf8 encoded. Little dejavu: Same issue as back when I migrated to wxWidgets 3.1.1 with VS 2017 (article: https://forums.wxwidgets.org/viewtopic.php?f=1&t=44580&p=184699#p187575 ) I browsed the o...
by Natulux
Fri Sep 20, 2019 9:13 am
Forum: C++ Development
Topic: wxConfigFile deletes user group entry
Replies: 3
Views: 170

Re: wxConfigFile deletes user group entry

Hey, just to wrap this up: I tested wxFileConfig in several uncritical places: When writing (changing/deleting) with wxFileConfig, user (group) permissions are generally overwritten. At least on my Win10 Prox64 system. I was able to work around this, by creating a copy of the INI in question (wxCopy...
by Natulux
Mon Sep 16, 2019 9:10 am
Forum: C++ Development
Topic: wxConfigFile deletes user group entry
Replies: 3
Views: 170

Re: wxConfigFile deletes user group entry

It unconditionally uses wxTempFile internally which creates a new file and later renames it. Maybe you can fix the permissions afterwards using wxFileName::SetPermissions https://docs.wxwidgets.org/trunk/classwx_file_name.html#ae1b6847990f5b41f5b53fb46a5e5fb79 FWIW, a better location for that file ...
by Natulux
Tue Aug 27, 2019 7:27 am
Forum: C++ Development
Topic: wxConfigFile deletes user group entry
Replies: 3
Views: 170

wxConfigFile deletes user group entry

Hey everyone, I use wxConfigFile to read/write from/to ini files. Now I have a shared ini file, that is placed in "C:\Windows\file.dat" (not my idea to place it there ...) Because "Windows" is a protected enviroment, the file has a usergroup (user "jeder" (everyone)) entry with elevated right for re...
by Natulux
Wed Aug 07, 2019 12:13 pm
Forum: C++ Development
Topic: Unicode Madness
Replies: 24
Views: 1005

Re: Unicode Madness

Oh, you know chilkat? You never stop to surprise me. I bought and use their Email component. Saved me so much time. Worth every cent. I have the feeling that chilkat is able to solve everything, if you find yourself able to puzzle the right examples and classes to your usecase. I had some serious h...