Search found 397 matches

by Widgets
Sun Nov 29, 2020 10:48 pm
Forum: C++ Development
Topic: Redirecting UTF-8 strings to wxTextCtrl
Replies: 11
Views: 250

Re: Redirecting UTF-8 strings to wxTextCtrl

No, the original sample code is/was a console app. My output needs to go to a wxWidgets GUI. Being able to use redirection to a text control was the easy way out as long as everything was plain ASCII. When UTF-8 strings showed up and became important, that option failed badly. Finding a way to make ...
by Widgets
Sun Nov 29, 2020 9:49 pm
Forum: C++ Development
Topic: Redirecting UTF-8 strings to wxTextCtrl
Replies: 11
Views: 250

Re: Redirecting UTF-8 strings to wxTextCtrl

Yes, there seems to be a lot more involved with this conversion than it seemed at first. I will have to investigate the links you provided and hopefully will be able to come up with something useful. As always, it will likely take several tries and a fair bit of time. For now, I think this will be p...
by Widgets
Sun Nov 29, 2020 9:15 pm
Forum: C++ Development
Topic: Redirecting UTF-8 strings to wxTextCtrl
Replies: 11
Views: 250

Re: Redirecting UTF-8 strings to wxTextCtrl

but implementing the proposed class wxStreamToTextRedirectorUnicode does not seem to do the job for me. Did you try to add converting that was mentioned in this message? That is the very same post I had referred to in my first post - and no, it did not. In fact, class wxStreamToTextRedirectorUnicod...
by Widgets
Sun Nov 29, 2020 6:41 pm
Forum: C++ Development
Topic: Redirecting UTF-8 strings to wxTextCtrl
Replies: 11
Views: 250

Re: Redirecting UTF-8 strings to wxTextCtrl

What is wrong with calling FromUTF8()? Nothing, but it requires a rewrite. Some members of 'md' can be strings, numeric or boolean data and hence would need logic to deal with each type differently. With the code as is, the stream handles all of those differences, when it goes to cout. A rewrite mi...
by Widgets
Sun Nov 29, 2020 5:41 pm
Forum: C++ Development
Topic: Redirecting UTF-8 strings to wxTextCtrl
Replies: 11
Views: 250

Re: Redirecting UTF-8 strings to wxTextCtrl

Hi, What code do you use to send the string to the wxTextCtrl? The original code I was using, and which works well for plain ASCII strings, is: // has problems with UTF-8 strings ostream stream(m_textCtrlXmpDump ); for (const auto& md : xmpData) { //stream << 123.456 << " some text\n"; // test stri...
by Widgets
Sun Nov 29, 2020 2:05 am
Forum: C++ Development
Topic: Redirecting UTF-8 strings to wxTextCtrl
Replies: 11
Views: 250

Redirecting UTF-8 strings to wxTextCtrl

In one of my projects I need to display UTF-8 string. Some of the sample code I have available uses std::cout to do this to a console app. cout << std::setfill(' ') << std::left << std::setw(44) << md.key() << " " << std::setw(9) << std::setfill(' ') << std::left << md.typeName() << " " << std::dec ...
by Widgets
Tue Aug 18, 2020 3:44 pm
Forum: C++ Development
Topic: Showing selection in wxTextCtrl
Replies: 6
Views: 268

Re: Showing selection in wxTextCtrl

That fixed it, thank you
I had experimented with this flag, but, after checking again now, I had set it for the wrong text control.
by Widgets
Mon Aug 17, 2020 8:49 pm
Forum: C++ Development
Topic: Showing selection in wxTextCtrl
Replies: 6
Views: 268

Re: Showing selection in wxTextCtrl

It gets curioser all the time. When I strip all code following the SetSelection(), I can execute the search by clicking on the 'search 'button' - the magnifying glass - the control's text is positioned to make the line with the search string visible at the top of the window. If I then right-click, I...
by Widgets
Mon Aug 17, 2020 6:00 pm
Forum: C++ Development
Topic: Showing selection in wxTextCtrl
Replies: 6
Views: 268

Re: Showing selection in wxTextCtrl

I was already calling Refresh() and tried a few more calls in the calling function, but it does not help.
by Widgets
Mon Aug 17, 2020 4:11 pm
Forum: C++ Development
Topic: Showing selection in wxTextCtrl
Replies: 6
Views: 268

Showing selection in wxTextCtrl

In my current project I want to implement a 'find' feature within one of several a wxTextCtrl with the following code. FWIW, the code makes sure the appropriate window is selected. void MyFrame::DoFind( const wxString arc_ws2Find, wxTextCtrl* a_pTextCtrl ) { long lStart; long lFoundPos; long Last; b...
by Widgets
Tue Jun 23, 2020 3:53 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 1203

Re: debugrpt sample problems

That is exactly what happened, initially, but after some fiddling with the data supplied to MFCDemo, I finally got the server to accept the data :D Thank you for sticking with this issue; it gave me enough information to keep trying with the original MFCDemo and now I can take on my 'real' applicati...
by Widgets
Mon Jun 22, 2020 11:52 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 1203

Re: debugrpt sample problems

The real problem seems to be, that whichever version I happened to pick fails the Unit tests for SMTP & HTTP delivery, so all of my trials for that sort of result is likely to fail in any case. As well, I have no real idea how I might debug that part of the project - the crash sender. Haven't found ...
by Widgets
Mon Jun 22, 2020 7:44 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 1203

Re: debugrpt sample problems

does $file_root end up as server home directory relative or a regular Win OS file path?
Neither works for me
by Widgets
Mon Jun 22, 2020 6:34 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 1203

Re: debugrpt sample problems

Any special setup/code required at the server end?
I have copied the PHP file found with the crashRpt code to the server htdocs\crashRpt\
I am working with xampp 7.13.10 on a separate PC on my LAN
by Widgets
Mon Jun 22, 2020 3:59 pm
Forum: Compiler / Linking / IDE Related
Topic: debugrpt sample problems
Replies: 16
Views: 1203

Re: debugrpt sample problems

FWIW, just an update and to record the bit of progress. When compiling and debugging the MFCDemo, I have run into an assert issue regarding the hardwired dbghelp dll version when working on Win 10 & the latest MSVC 2019 updates. The code (from wherever I got it), has 6.1.11 hard coded as the version...