Max, I now know why you are called DoubleMax!
This worked perfectly, thank you
Search found 47 matches
- Fri Jan 10, 2020 3:19 am
- Forum: C++ Development
- Topic: Chinese text conversion
- Replies: 7
- Views: 1062
- Thu Jan 09, 2020 9:12 am
- Forum: C++ Development
- Topic: Chinese text conversion
- Replies: 7
- Views: 1062
Re: Chinese text conversion
Hello doublemax, The problem is that wxConvGB2312 is not defined in strconv.h, I can only use wxConvUTF8 The issue is that I have the filename in a data file, this filename contains Chinese characters. This filename refers to a file that (on my pc) is shown in iso-8859-1. When I try to open this fil...
- Thu Jan 09, 2020 8:43 am
- Forum: C++ Development
- Topic: Chinese text conversion
- Replies: 7
- Views: 1062
Re: Chinese text conversion
I spend a lot of time investigating this problem and have come to the following conclusion: The string that I want to convert to iso-8859-1 is encoded in gb2312. gb2312 takes 2 bytes for each character. To convert from gb2312 to iso8859-1 I need to do something like: wxString output( input.mb_str(wx...
- Thu Jan 09, 2020 1:03 am
- Forum: C++ Development
- Topic: Chinese text conversion
- Replies: 7
- Views: 1062
Re: Chinese text conversion
The suggestion that you gave didn't work, I receive an empty string, so it probably isn't utf8 However, after more searching I found a very handy website on which I could try out several conversions: http://string-functions.com/encodedecode.aspx After trying out some encodings I got the correct resu...
- Wed Jan 08, 2020 7:33 am
- Forum: C++ Development
- Topic: Chinese text conversion
- Replies: 7
- Views: 1062
Chinese text conversion
Hello, I have a file named ÀðÓãÔ¾ÁúÃÅ3.bmp in a Windows 8 OS and a data file that references this file as 鲤鱼跃龙门3.bmp My program reads this data file and wants to open the image file and fails because it can't find the file. Apparently I need to convert the filename in the data file to match the name...
- Sat Dec 21, 2019 9:05 am
- Forum: C++ Development
- Topic: Abnormal program exit
- Replies: 45
- Views: 5012
Re: Abnormal program exit
As I told you, I didn't write any line of code. I let Code::Blocks generate a wxWidgets skeleton for me and I place a panel and 2 textcontrolls on it. If I understand it well, you are suggesting that Code::Blocks doesn't generate very nice code. I agree, but I don't think in this case it is the prob...
- Sat Dec 21, 2019 8:07 am
- Forum: C++ Development
- Topic: Abnormal program exit
- Replies: 45
- Views: 5012
Re: Abnormal program exit
Yes, I know it is better to stick with my old tool chain. However, you say that it must be in my code. But then how can you explain the problems that I face in the test project that I have attached? To generate this project I have chosen 'new project' in code::blocks and only placed 2 wxTextControls...
- Sat Dec 21, 2019 5:38 am
- Forum: C++ Development
- Topic: Abnormal program exit
- Replies: 45
- Views: 5012
Re: Abnormal program exit
I have made the most simple program that also shows the error. In Code::Blocks I started a new project and placed the block with the textctrl's from my original program in the constructor: The resulting program is as follows: /*************************************************************** * Name: t...
- Sat Dec 21, 2019 2:27 am
- Forum: C++ Development
- Topic: Abnormal program exit
- Replies: 45
- Views: 5012
Abnormal program exit
I am using nuwen's MingW and have recently updated the toolchain from 16.1 to 17.1. This changed the gcc compiler from 8.2 to 9.2 I compiled wxWidgets-3.1.2 again and re-compiled my current project - everything without problems. The program that I am developing runs smoothly. The only problem that I...
- Sat Dec 21, 2019 12:42 am
- Forum: Compiler / Linking / IDE Related
- Topic: Precompiled header filesize
- Replies: 9
- Views: 1691
Re: Precompiled header filesize
The compiler version is 8.2.0 The minGW version is from Nuwen: https://nuwen.net/mingw.html , its version 16.1. On this moment he also has a version 17.1 which I have tried but gives the same result (this version uses GCC 9.2) According to his information he only uses 64 bit versions of all programs...
- Fri Dec 20, 2019 12:42 am
- Forum: Compiler / Linking / IDE Related
- Topic: Precompiled header filesize
- Replies: 9
- Views: 1691
Re: Precompiled header filesize
At my work I run windows 8 in a virtual box and I also think that memory might be an issue. However on the internet I also see other people with the same problems and it seems that the cause of the problem with cc1plus.exe is a lack of memory. Also note that I have done several tests yesterday and f...
- Thu Dec 19, 2019 8:45 am
- Forum: Compiler / Linking / IDE Related
- Topic: Precompiled header filesize
- Replies: 9
- Views: 1691
Precompiled header filesize
The project that I am busy with is getting too large, so I am trying to speed up the build process by using a few precompiled headers. The precompiled header that is created is extremely large (about 300 Mb) and as a result cc1plus.exe is crashing during a build. To investigate the problem I have cr...
- Wed Dec 18, 2019 12:37 am
- Forum: C++ Development
- Topic: wxImage and grayscale BMP files
- Replies: 9
- Views: 1135
Re: wxImage and grayscale BMP files
Yes, I understand that it is not an official fix but until now I didn't notice any problems, but of course will follow the ticket. And no, I made a mistake - I am currently using 3.1.2. Yesterday however I have also tried 3.1.3 but received an error related to wxClientDC. This made me switch back to...
- Tue Dec 17, 2019 6:58 am
- Forum: C++ Development
- Topic: wxImage and grayscale BMP files
- Replies: 9
- Views: 1135
Re: wxImage and grayscale BMP files
You guys are Amazing!!
I have checked the bug track and saw that it is already fixed. I have immediately applied the fix and compiled it again.
It is now working without any issues.
Thank you for the quick fix!
I have checked the bug track and saw that it is already fixed. I have immediately applied the fix and compiled it again.
It is now working without any issues.
Thank you for the quick fix!
- Mon Dec 16, 2019 9:27 am
- Forum: C++ Development
- Topic: wxImage and grayscale BMP files
- Replies: 9
- Views: 1135
Re: wxImage and grayscale BMP files
I use widgets vs. 2.8 with windows 8