Search found 29 matches

by winvdk
Tue Oct 27, 2020 1:33 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

I don't think you learning COM helps you building wxWebViewEdge. FWIW, the error I got was due to undeclared "Callback": the event.h provided in that repo is missing many declarations compared to that from MS. I'm learning it. Guess the benefit is that in the worst scenario I still can us...
by winvdk
Mon Oct 26, 2020 1:55 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

I have tried to patch wxWidgets with the files from the webview2-in-mingw repo I linked above. Still failed to build due to some missing methods, perhaps that event.h interface does not match the current WebView2 package, I believe there were some recentish incompatible API changes in WebView2. But...
by winvdk
Sun Oct 25, 2020 5:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

Missing EventToken.h could perhaps be fixed on your side, see https://github.com/jchv/webview2-in-mingw but... It's the first missing header too when cross-compiling it from Linux. Setting CXXFLAGS to refer to where the Windows SDK headers are for command make can dismiss these compile-time errors,...
by winvdk
Sun Oct 25, 2020 5:11 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

Hi, Curious - why did you use command prompt and not the ide with minimal sample? Thank you. My Windows is on virtual machine. Therefore, I think it'd be better to avoid resource hog. Sure, building a minimal sample won't be a problem, but is it worth to invest time to learn IDE for a non-productiv...
by winvdk
Sun Oct 25, 2020 4:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

AFAIK, the above is not true: COM is for its users actually (at least in theory) language agnostic; many Windows APIs are COM-based, including the original WebView or DirectDraw. I believe that the issue is that mingw-w64 lacks the necessary headers and import libraries to use WebView2. This is tru...
by winvdk
Sun Oct 25, 2020 12:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

I do not understand why you run MSVC application from MSYS nor how it could affect it. I did try running VC++ compiler and linker from MSYS2, and the result is terrible. Lots things need to be dealt with. So, I didn't use MSYS2 to run VC++ anymore. I did use MSYS2 to run MinGW, and it's not difficu...
by winvdk
Sun Oct 25, 2020 11:00 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

FWIW, here are logs produced when building a minimal project (x64, DLL, release) from MSVS 2019, where C++ file is D:\DEV\DESKTOP\WXPOKUSY\_FORUM\SHOWCL\MINIMAL.CPP and wxWidgets root folder is D:\DEV\DESKTOP\!LIB\WXWIDGETS-GIT\ Those command-line options are awfully long. Obviously that is not how...
by winvdk
Sun Oct 25, 2020 10:44 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Re: Failed to link against wxMSW with VC++ toolset. Help~

PB wrote: Sun Oct 25, 2020 9:24 am For example, you should always define UNICODE and __WXMSW__ and if using DLL build of wxWidgets, also WXUSINGDLL.
All this is described in the docs you mentioned.
Thank you, thank you, thank you so much, PB. It works. Finally successfully build the .exe file, after defining the missing macros.
by winvdk
Sun Oct 25, 2020 8:33 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 3974

Failed to link against wxMSW with VC++ toolset. Help~

I'm not a MS guy, working most of my time on Linux, not familiar with VC++ stuff. Recently, guess this day finally comes. Have to face it to use VC++, due to the fact that wxWebViewEdge cannot be compiled with compiler other than VC++ (If you know how to build it with, like MinGW, please let me know...
by winvdk
Tue Nov 26, 2019 9:15 am
Forum: C++ Development
Topic: How to convert a codepoint to utf8
Replies: 3
Views: 786

Re: How to convert a codepoint to utf8

There is no need to do conversion, because 65 is already a UTF-8 character 'A'. 65, 'A', and 0x41 all of them are the same to the machine. The difference is how we (human) want it to be represented on screen. Character encoding - Wikipedia wxWidgets: wxMBConv Class Reference wxWidgets uses wide char...
by winvdk
Sun Nov 03, 2019 2:33 pm
Forum: General Development
Topic: Has anyone successfully built an CEF application with wxGTK?
Replies: 3
Views: 1965

Re: Has anyone successfully built an CEF application with wxGTK?

Thanks for the reply, and yes I did check the source codes of wxWebViewChromium before asking the question. As far as I know, it is removed from version 3.1.2 of wxWidgets. I actually doubt if it is completed. For example, while creating a CefBrowser object it does not setup the CefWindowInfo object...
by winvdk
Sun Nov 03, 2019 5:39 am
Forum: General Development
Topic: Has anyone successfully built an CEF application with wxGTK?
Replies: 3
Views: 1965

Has anyone successfully built an CEF application with wxGTK?

Hi, I'm learning Chromium Embedded Framework (CEF), and tried to build some simple examples written by myself for practice. I followed this tutorial chromiumembedded / cef / wiki / GeneralUsage — Bitbucket , but it doesn't actually work. It really is not as simple as the tutorial describes. The main...
by winvdk
Sun Jun 25, 2017 12:52 pm
Forum: Platform Related Issues
Topic: Debian 9 + Xfce => broken wxGTK ???
Replies: 2
Views: 1243

Re: Debian 9 + Xfce => broken wxGTK ???

Thank you, David. It works perfectly now after install ibus-gtk, just like the link you gave describes. You saved me a lot of time from "trial and error". Really appreciate it. Have a nice day. :) By the way, even the ugly (broken?) GUI of samples/widgets is gone. Don't know why and how ib...
by winvdk
Sun Jun 25, 2017 7:25 am
Forum: Platform Related Issues
Topic: Debian 9 + Xfce => broken wxGTK ???
Replies: 2
Views: 1243

Debian 9 + Xfce => broken wxGTK ???

Sorry, my English is not good. Just want to ask if any one have the same problem. Recently, Debian 9 was officially released, so I upgraded and also decided to give Xfce a try, because it is said to be more resource-friendly. However, everything goes weird in the applications using wxGTK. For exampl...
by winvdk
Wed Jan 14, 2015 6:11 am
Forum: C++ Development
Topic: Unbale to set different settings for socket IO.
Replies: 1
Views: 943

Unbale to set different settings for socket IO.

According to http://docs.wxwidgets.org/3.0.2/socket_8h.html#a1fb9092bcdeada2d206bdc74afbbe122 , it says If wxSOCKET_NOWAIT is specified, ... If it is desired to control Read independently of Write, for example you want no wait on Read(), but you do want to wait on Write(), then use wxSOCKET_NOWAIT_R...