Search found 242 matches

by Natulux
Thu Apr 08, 2021 9:50 am
Forum: C++ Development
Topic: wxExecute error 299
Replies: 0
Views: 15763

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: 583

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: 583

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...
by Natulux
Wed Oct 21, 2020 10:09 am
Forum: C++ Development
Topic: wxDateTime assert
Replies: 4
Views: 583

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(Ma...
by Natulux
Thu Mar 12, 2020 2:02 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 1622

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: 1622

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 mi...
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: 2419

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: 1622

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: 1622

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: 1622

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: 2419

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: 2419

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...
by Natulux
Tue Mar 10, 2020 8:01 am
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 2419

Re: Build wxWidgets 3.1.3 with VS2019

I would guess that wxCOMPILER_PREFIX is vc142 . wxARCH_SUFFIX is normally x64 You are right, my mistake. Are you building using "CMake"? Or directly with MSVC? MSVC! I was just considering cmake because I wasn't aware I could configure wxWidget build via setup files even after the cmake p...
by Natulux
Mon Mar 09, 2020 3:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 2419

Build wxWidgets 3.1.3 with VS2019

Hey, I built several wxWidget versions with several Visual Studio versions on Windows10 now, but to be honest: I had the privilege of using the project files that come with wxWidgets for vs users. Now I run into a problem compiling wxSqlite 4.4.6 (from utelle) with wxWidgets 3.1.3 MD: The wx/setup.h...
by Natulux
Tue Mar 03, 2020 10:15 am
Forum: C++ Development
Topic: multi threaded app
Replies: 17
Views: 2687

Re: multi threaded app

Maybe there are some other mistakes on my side, but as of now I'd say that wxSockets should be used single threaded only, as they are not per se thread safe. The main issue seems to be, that the socket is beeing closed in the main thread and the worker thread, unaware, tries to Read/Write/Wait for a...