Code Monkey home page Code Monkey logo

quicklook.plugin.helloworld's People

Contributors

xupefei avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

quicklook.plugin.helloworld's Issues

Bad image format when loading C++ dll

Hi,

Thanks for this great piece of software, I'm devlopping a viewer plugin for a particular astroimage format called FITS. Here is the project link.

The core of my plugin is in C++ which is built as a DLL. The plugin.cs calls functions in it like

 [DllImport(@"viewer_core.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static extern IntPtr FitsImageCreate(IntPtr path);

However at runtime, my plugin crashes and the exception log in QuickLook indicates bad image format.

As far as my little knowledge in the Windows world and some Googling goes, this means the plugin.dll is loading my viewer_core.dll which targets the wrong architecture. Here is some information that I gathered in this regard.

  1. My machine is running 64bit windows. The plugin.cs project is using build configuration "AnyCPU", and my C++ project is built as x64. This produces the above exception.

  2. Same machine. The plugin.cs project is using build configuration "x86", and my C++ project is built as win32. This causes QuickLook to crash at startup.

  3. I have a standalone viewer in c# just for testing purpose, it shares the same code as plugin.cs. This viewer runs ok as x86 with a win32 C++ dll.

It seems to me that neither x64 nor win32 build works. So please advice on how to build a correct C++ DLL.

Thanks

QLPlugin Metadata File

Should QuickLook.Plugin.Metadata.config be included since this is required for a plugin to install?

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.