Search found 230 matches

by Natulux
Thu Sep 02, 2021 3:58 pm
Forum: C++ Development
Topic: wxFileConfig error with encoding with BOM
Replies: 5
Views: 712

Re: wxFileConfig error with encoding with BOM

Hey doublemax, CR/LF after the BOM was actually just a guess, because the said something about not finding the "=" letter in the first line, which it should find, if the string were concatenated. Thanks for trying though. I will check that. But I cant remove it. If I alter the file at all, I would r...
by Natulux
Wed Sep 01, 2021 1:09 pm
Forum: C++ Development
Topic: wxFileConfig error with encoding with BOM
Replies: 5
Views: 712

Re: wxFileConfig error with encoding with BOM

Hey ONEEYEMAN, I can give you an example, even though the content of the INI file does not matter in this case, because most editors hide the BOM from you. But let me illustrate the problem. If I open my INI file, I see: [build] version=1.0.0.0 name=ReleaseBuild And that would be the same for all en...
by Natulux
Tue Aug 31, 2021 9:47 am
Forum: C++ Development
Topic: wxFileConfig error with encoding with BOM
Replies: 5
Views: 712

wxFileConfig error with encoding with BOM

Hey, I recently dicovered that wxFileConfig (tested wx3.1.1 and below on Windows10x64) does not understand encoding with BOM. I have not given a specific encoding, so wxConvAuto() is used. Opening a ini file gives an error message, saying that it misses a " = " sign in the first line, which is where...
by Natulux
Thu Apr 08, 2021 9:50 am
Forum: C++ Development
Topic: wxExecute error 299
Replies: 0
Views: 4641

wxExecute error 299

Hey guys, I used wxExecute alot and it worked so far for me nicely. Now I get on just some machines (not on mine) the error 299 (see attached picture) with the old school wxWidgets 2.9.2 (not sure if wxExecute changed since then). Error299.png Oddly enough the Execute works in an second attempt (Exe...
by Natulux
Sat Oct 24, 2020 10:37 am
Forum: C++ Development
Topic: wxDateTime assert
Replies: 4
Views: 408

Re: wxDateTime assert

Hey, just to wrap this up: Im not proud of this, but I looked at other WinMain implementations and found the line wxDISABLE_DEBUG_SUPPORT(); I use a release build so having wxWidget Debug Messages in the first place was a bit puzzling to me. Either the Debug Assert was having some errors or those er...
by Natulux
Thu Oct 22, 2020 6:24 am
Forum: C++ Development
Topic: wxDateTime assert
Replies: 4
Views: 408

Re: wxDateTime assert

Hey doublemax I basically didn't change what worked for tbhoward, but: Yes, wxEntry is called. extern "C" int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, wxCmdLineArgType lpCmdLine, int nCmdShow) { MyApp::DoLog("WinMain: Start"); if(strstr(lpCmdLine, "--svc")==NULL) // didn't find ...
by Natulux
Wed Oct 21, 2020 10:09 am
Forum: C++ Development
Topic: wxDateTime assert
Replies: 4
Views: 408

wxDateTime assert

Hi, I want to use my app as a windows service. For that I used the example of "tbhoward" on github and here in the forum: https://github.com/tdhoward/sample-wxwidgets-windows-service/blob/master/service.cpp With his approach, the wxApp WinMain function is replaced: IMPLEMENT_APP_NO_MAIN(MainApp) ext...
by Natulux
Thu Mar 12, 2020 2:02 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 1260

Re: wxbase29u.lib expected in wx313 project

I have the impression that the terms static and shared/DLL are a bit mixed up in this discussion. On the one hand, you can use static or shared/DLL C runtime libraries (compiler switch /MT vs /MD), and on the other hand you can build wxWidgets (and other components) as static or shared/DLL. Yes, it...
by Natulux
Tue Mar 10, 2020 3:25 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 1260

Re: wxbase29u.lib expected in wx313 project

This has always been a little confusing for me, but I don't talk about using a DLL build, but rather about the microsoft runtime libraries. As a default, wxWidgets is compiled with the Visual Studio compiler setting "Multithreaded-DLL (/MD)" (windows only I believe) which means that the microsoft dy...
by Natulux
Tue Mar 10, 2020 2:31 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 1724

Re: Build wxWidgets 3.1.3 with VS2019

One final conclusion: [EDIT:] I am talking about the used microsoft static/dynamic runtime beeing used from visual studio on windows. Not to be confused with static or DLL build of wxWidgets. Never try to get static/dynamic compilations of wxWidgets in one directory - weird errors may occur - sepera...
by Natulux
Tue Mar 10, 2020 2:26 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 1260

Re: wxbase29u.lib expected in wx313 project

ok it compiled. Conclusion: Never try to get static/dynamic compilations of wxWidgets in one directory - seperate the whole thing. What works for me: C:/wxWidgets-3.1.3_MD_2019/ (dynamic debug and release) C:/wxWidgets-3.1.3_MT_2019/ (static debug and release) It needs more disc space that way, but ...
by Natulux
Tue Mar 10, 2020 2:12 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 1260

Re: wxbase29u.lib expected in wx313 project

It probably is somewhere in the project linker settings for given configuration: Grep your .vcxproj files to check. If you will not find anything there, it could be #pragma(comment, wxbase29u.lib) somewhere in the source files but that is hopefully not very likely... Nothing so easy I fear. I searc...
by Natulux
Tue Mar 10, 2020 1:11 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 1260

wxbase29u.lib expected in wx313 project

Hey I have an obscure problem. I try to port a very old project from 2.9.2/vs2008 to 3.1.3/vs2019 With the help of utelle I already set up an working enviroment with wxWidgets_313/wxSqlite3_451 static and dynmaic / Debug and Release (I checked with minimal samples). (Windows10x64, build x86) The pro...
by Natulux
Tue Mar 10, 2020 12:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 1724

Re: Build wxWidgets 3.1.3 with VS2019

As far as I know the Visual Studio solution files of wxWidgets do not support to select the static C runtime libraries. One has to modify them manually, or has to use the makefile. It worked for me in the past and as far as I can see it also works now to select all the projects that come with wxWid...
by Natulux
Tue Mar 10, 2020 8:40 am
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 1724

Re: Build wxWidgets 3.1.3 with VS2019

A fresh download of wxW313 and wxS451 together with your configuration advise worked like a charm! The only thing I couldn't properly set in the setup props was the distinction between static and shared libraries, because unfortunately I need both. I used to having them in seperate directories, I'll...