Git Product home page Git Product logo

nativedialogs's People

Contributors

geequlim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nxanywhere

nativedialogs's Issues

NativeDialogs requires a proper manifest file under windows

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.