geequlim / nativedialogs Goto Github PK
View Code? Open in Web Editor NEWUse native dialogs with same code on Windows,Mac OSX and GTK
License: MIT License
Use native dialogs with same code on Windows,Mac OSX and GTK
License: MIT License
Hi there!
First and foremost, thank you SO MUCH for this library, it is really nice and useful.
I have been using this under the MSYS2/MinGW64 toolchain, and I have encountered two problems when compiling and running code containing the MessageDialog functions.
The first is trivial: there is a #pragma
to link to comctl32.dll, but MinGW ignores that, so one needs to manually pass the -lcomctl32
flag to the linker.
The second is much more convoluted and it took me several hours to overcome: linking to comctl32
is not enough, one must specify which version of the library needs to be used, otherwise you will get an error related to "not being able to find the dll entrypoint for TaskDialogIndirect" at runtime. The solution is adding the following to your manifest file:
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
This all boils down to the fact that TaskDialog()
and TaskDialogIndirect()
were introduced in Windows Vista, while the default manifest file that MinGW64 adds to your executable is Windows XP compatible, so there is some kind of "dll mismatch".
This is not an issue of the library per-se, but I think it would be nice to add something to the README for non-MSVC users.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.