Search found 47 matches

by dqf88
Fri Mar 09, 2018 12:16 am
Forum: Compiler / Linking / IDE Related
Topic: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]
Replies: 4
Views: 190

Re: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]

Thanks, the libraries requested are in the "MinGW\lib" folder
by dqf88
Thu Mar 08, 2018 8:17 am
Forum: Compiler / Linking / IDE Related
Topic: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]
Replies: 4
Views: 190

Re: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]

I can't find these two libraries after compiling the wxwidgets3.1.1
by dqf88
Thu Mar 08, 2018 6:18 am
Forum: Compiler / Linking / IDE Related
Topic: The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]
Replies: 4
Views: 190

The sample "wxWidgets app" application can't be compiled smoothly [SOLVED]

I can't compile the sample application "wxWidgets app" using wxwidgets3.1.1 and codeblocks17.12, but there is no error using wxwidgets3.1.0 and codeblocks17.12, why ? -------------- Build: Release in SS (compiler: GNU GCC Compiler)--------------- windres.exe -IC:\wxWidgets-3.1.1\include -I...
by dqf88
Thu Aug 18, 2016 2:02 am
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]
Replies: 6
Views: 1282

Re: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]

New Pagodi wrote:I wrote about some solutions here.

The error occured when I builded the program with "wxWidgets is built as a monolithic library" option
by dqf88
Thu Aug 18, 2016 12:42 am
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]
Replies: 6
Views: 1282

Re: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]

New Pagodi wrote:I wrote about some solutions here.

Thanks
by dqf88
Tue Aug 16, 2016 5:00 am
Forum: Compiler / Linking / IDE Related
Topic: CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]
Replies: 6
Views: 1282

CodeBlocks IDE has no "wxWidgets 3.1.x" option [SOLVED]

CodeBlocks IDE has no "wxWidgets 3.1.x" option, how to solve this problem? Thanks
by dqf88
Wed Aug 10, 2016 1:04 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 3.3.1 released
Replies: 5
Views: 992

Re: ANN: wxSQLite3 3.3.1 released

doublemax wrote:WXSQLITE_LIMIT_WORKER_THREADS is defined in wxsqlite3.h. Maybe you forgot to update it or it's included from an older version?


I build the project in wxSQLite3 3.3.1
by dqf88
Wed Aug 10, 2016 12:33 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 3.3.1 released
Replies: 5
Views: 992

Re: ANN: wxSQLite3 3.3.1 released

-------------- Build: DLL Release Win64 x64 in wxsqlite3 (compiler: GNU GCC Compiler)--------------- mingw32-g++.exe -D_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNDEBUG -D_USRDLL -DWXMAKINGDLL_WXSQLITE3 -D_UNICODE -DWXUSINGDLL -D__WXMSW__ -DwxUSE_DYNA...
by dqf88
Thu Aug 04, 2016 1:04 am
Forum: C++ Development
Topic: wxFFile, why can't I get the correct result?
Replies: 12
Views: 1392

Re: wxFFile, why can't I get the correct result?

// reading // appname and vendorname are ignored when using wxFileConfig // the directory for the .INI file must exist and you must have write permission. // The file itself can be missing, then it will be created wxFileConfig *conf = new wxFileConfig(wxT("appname"), wxT("vendorname&...
by dqf88
Thu Aug 04, 2016 12:59 am
Forum: C++ Development
Topic: wxFFile, why can't I get the correct result?
Replies: 12
Views: 1392

Re: wxFFile, why can't I get the correct result?

OK, just be aware the code I posted was written in a hurry as an example, so there is even less guarantees than usual that it is bug-free. And now I realized there is at least one bug in the code. One cannot write/read size_t variables (bufLength in the code above) as binary, this is going to break...
by dqf88
Wed Aug 03, 2016 11:23 am
Forum: C++ Development
Topic: wxFFile, why can't I get the correct result?
Replies: 12
Views: 1392

Re: wxFFile, why can't I get the correct result?

If you really need to, I guess you could do that as I demonstrate in the simple app below: #include <wx/wx.h> #include <wx/ffile.h> bool WritewxStringToFFile(wxFFile& file, const wxString& str) { wxCharBuffer buf(str.utf8_str()); const size_t bufLength = buf.length(); if ( file.Write(&b...
by dqf88
Wed Aug 03, 2016 8:27 am
Forum: C++ Development
Topic: wxFFile, why can't I get the correct result?
Replies: 12
Views: 1392

Re: wxFFile, why can't I get the correct result?

Why the "LoadWxString" doesn't work? Thanks again bool SaveWxString( wxFFile &fFile, wxString &str ) { long lHelp; if ( ! fFile.IsOpened() ) return false; lHelp = (long)str.Len() + 1L; fFile.Write( &lHelp, sizeof( lHelp ) ); fFile.Write( str.c_str(), lHelp ); return true; } wxS...
by dqf88
Tue Aug 02, 2016 12:24 pm
Forum: C++ Development
Topic: wxFile--How to read wxString from a file? [SOLVED]
Replies: 3
Views: 289

Re: wxFile--How to read wxString from a file? [SOLVED]

While writing a string to wxFile would be relatively easy, reading them back will be more difficult. If you don't want to use wxFileConfig like i suggested, try wxTextOutputStream / wxTextInputStream. Usage will be more similar to your original non-working code. http://docs.wxwidgets.org/trunk/clas...
by dqf88
Tue Aug 02, 2016 11:17 am
Forum: C++ Development
Topic: wxFile--How to read wxString from a file? [SOLVED]
Replies: 3
Views: 289

wxFile--How to read wxString from a file? [SOLVED]

How can I read wxString type strings from a file with wxFile ?
The file contains wxString type strings (str1,str2,……)
by dqf88
Mon Aug 01, 2016 2:43 pm
Forum: C++ Development
Topic: wxFFile, why can't I get the correct result?
Replies: 12
Views: 1392

Re: wxFFile, why can't I get the correct result?

fFile.Write( &CustName, sizeof( wxString ) ); You can't save a wxString this way. You just save the datastructure itself, but not the allocated text which lies in a different memory location. I would suggest to use wxFileConfig for this. I need save items with this method. How can I do it this ...

Go to advanced search