Search found 340 matches

by samsam598
Tue Mar 19, 2024 12:52 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 268

Re: General way for console read text file in various Encodings

It seems that wxCSConv "gb936" can handle this pure_ascii.txt.

Code: Select all

   wxCSConv cust("gb936");
by samsam598
Mon Mar 18, 2024 8:52 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 268

Re: General way for console read text file in various Encodings

Yes,yes,sure,please see the attached for reference.
Tested with msys2 13.2 + wxWidgets 3.3 + Code::Blocks
by samsam598
Mon Mar 18, 2024 7:09 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 268

Re: General way for console read text file in various Encodings

Yes,I tried with wxLogMessageBox,it seems just failed to handle pure ascii file.Printing unrecognizable characters.
by samsam598
Mon Mar 18, 2024 2:43 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 268

Re: General way for console read text file in various Encodings

Thanks! This really helps a lot. Using wxCSConv or wxConvAuto works almost in all cases I listed above, except: text file in pure ansi encoding when check with Windows notepad,but if check with notepad++,it might be encoded with gb2312.In this case,I have no clue how to handle properly.Help would be...
by samsam598
Sun Mar 17, 2024 5:23 am
Forum: General Development
Topic: General way for console read text file in various Encodings
Replies: 8
Views: 268

General way for console read text file in various Encodings

I searched before this post but seems none of the result is very close to this. Just a very simple question:Is there a general way in wxWidgets and c++ reading text file content to windows console,the only thing need to concern is the text file is with Encoding either in ascii,unicode,utf8 no BOM,ut...
by samsam598
Mon Nov 06, 2023 4:29 am
Forum: Compiler / Linking / IDE Related
Topic: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks
Replies: 37
Views: 17466

Re: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks

<r><QUOTE author="ONEEYEMAN" post_id="221235" time="1699189724" user_id="1100"><s>[quote=ONEEYEMAN post_id=221235 time=1699189724 user_id=1100]</s> Hi,<br/> @samsam598,<br/> If you have MSVC installed - why do you want to use C::B?<br/> <br/> Using MSVC is actually much easier.<br/> <br/> All you do...
by samsam598
Sun Nov 05, 2023 12:25 pm
Forum: Database Related
Topic: Compiling wxSqlite3 with VS 2015 Community
Replies: 2
Views: 3768

Re: Compiling wxSqlite3 with VS 2015 Community

I compiled wx3.2.3 with MS Visual Studio 2015 Community+ wx3.2.3 installer package,just using the sln file in the build sub-folder and everything goes smoothly. After that I create a WXWIN in the sytem environment points to the new vc compiled wx3.2.3 root. But when I tried to use the same way to c...
by samsam598
Sun Nov 05, 2023 2:56 am
Forum: Database Related
Topic: Compiling wxSqlite3 with VS 2015 Community
Replies: 2
Views: 3768

Compiling wxSqlite3 with VS 2015 Community

I compiled wx3.2.3 with MS Visual Studio 2015 Community+ wx3.2.3 installer package,just using the sln file in the build sub-folder and everything goes smoothly.After that I create a WXWIN in the sytem environment points to the new vc compiled wx3.2.3 root. But when I tried to use the same way to com...
by samsam598
Sun Nov 05, 2023 2:31 am
Forum: Compiler / Linking / IDE Related
Topic: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks
Replies: 37
Views: 17466

Re: PB’s Guide to Starting with wxWidgets on Microsoft Windows with MinGW and Code::Blocks

May I ask a full step to step guideline for wxWidget+C::B+VC++ compiler configuration? I am using wxwidgets+C::B+MinGW for years,there is no much issues,everything is good. This time I want to try with VC++ compiler since I once heard the compiling speed is very fast . Now I have a copy of MS Visual...
by samsam598
Tue Oct 24, 2023 8:16 am
Forum: Open Discussion
Topic: Console example in wx/samples folder version 3.x vs 2.x
Replies: 2
Views: 1651

Re: Console example in wx/samples folder version 3.x vs 2.x

Got it,thank you. Based on my very limited C++ knowledge and learning experience,I felt myself wxWidgets very comfortable compare to other c++ library (including several very famous library),roughly for below reasons: 1. Very thin wrapper on some fundamental types/components/ OS APIs,which is easier...
by samsam598
Tue Oct 24, 2023 6:48 am
Forum: Open Discussion
Topic: Console example in wx/samples folder version 3.x vs 2.x
Replies: 2
Views: 1651

Console example in wx/samples folder version 3.x vs 2.x

Greetings, I recalled the console example in wx/samples folder of version 2.x is very huge in source code and it provides plenty of the library features to learn ,socket,threads,file manipulations,...,etc.However since version 3.x,this sample became very short and very less feature provided. Is anyb...
by samsam598
Sat Sep 10, 2022 11:05 am
Forum: Database Related
Topic: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10
Replies: 9
Views: 15043

Re: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10

Really appreciated for the great help! Built successfully! And also I do apologize for the trouble made to you because my knowing nothing about gcc/makefile. This indicates that either the wx library path is not set up correctly, or that wx was not built for the selected configuration. For example, ...
by samsam598
Sat Sep 10, 2022 1:01 am
Forum: Database Related
Topic: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10
Replies: 9
Views: 15043

Re: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10

Thank you so much! Personally, I never used the monolithic build of wxWidgets. However, there is nothing extraordinary linking wxSQLite3 against the monolithic wxWidgets library. Which errors do you get on building the samples? Somthing like 'recipe for minimal.exe failed' Can you build your own app...
by samsam598
Fri Sep 09, 2022 6:00 am
Forum: Database Related
Topic: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10
Replies: 9
Views: 15043

Re: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10

I tried several versions of mingw(gcc) but none can build successfully,several years ago I built wxSqlite3.1.1 with mingw4.8 successfully and that's my current working version. With msys2-mingw12.2.0,it seems the lib(mono,both debug and release lib )built ,but minimal and treeview sample still faile...
by samsam598
Fri Jul 22, 2022 9:23 am
Forum: Database Related
Topic: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10
Replies: 9
Views: 15043

Re: Need help after failed to build wxSqlite4.8.2+wx3.2 Monolithic with MinGW8.1 under Win10

Thanks a lot, utelle. Here below is the wx32 build command: \bin\mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1 2>errlog.txt Yes,E:\Learning\LoveDev\SDK\wx32\lib\gcc_lib\mswu\wx\setup.h exists.Everytime before build wx,I modifiied the setup.h file located in ..include\wx\...