About writing a file type support plugin.

Plug-ins, add-ons, skins, icons, templates and other downloads. Contributions are welcome.

Moderators: XnTriq, helmut, xnview

Moff
Posts: 5
Joined: Wed Mar 29, 2023 10:12 pm

About writing a file type support plugin.

Post by Moff »

Hi. I wanted to try my hand at writing a plugin to support an additional image format in XnView MP, but i don't have any experience writing custom dll libraries, and i've been searching this forum up and down and couldn't find any information on the subject.

I found PluginsSDK-win.zip from years ago, which contains a sample plugin code, and i managed to compile that with VS2019, and actually got it working with XnView Classic. So i guess i can work from there. But i mostly use MP these days, and this plugin doesn't seem to work with it. I tried sticking the .dll into .\plugins\ and .\User\other\Plugins\ , but apparently it doesn't get picked up by the program.

But there are some plugins around for MP so i assume that it does support custom plugins still. How do people go about writing them, does the dll need to export some additional functions or something? Can anyone give me some pointers on how to get started?
cday
XnThusiast
Posts: 4047
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: About writing a file type support plugin.

Post by cday »

Just a thought: XnView Classic is 32-bit, are you testing the plugin you created on XnView MP 32-bit?
Moff
Posts: 5
Joined: Wed Mar 29, 2023 10:12 pm

Re: About writing a file type support plugin.

Post by Moff »

cday wrote: Tue Jan 09, 2024 3:58 pm Just a thought: XnView Classic is 32-bit, are you testing the plugin you created on XnView MP 32-bit?
Of course... not. :D Well, i tried the 32bit version now, it doesn't seem to work with it either. Tried recompiling the plugin for 64bit, also no luck.