Custom Plugin is not loaded

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Costin_Barzon
Posts: 1
Joined: Wed Feb 18, 2004 8:21 am
Location: Bucharest, Romania

Custom Plugin is not loaded

Post by Costin_Barzon »

Hello,

I'm very interested in creating several custom plugins for some texture formats that we are using in our game engine.

Unfortunately I couldn't use the PluginsSDK-win.zip to create a working plugin.
I can compile the sample and produce a working DLL, but the latest version of XnView (1.68.1 - 16 Feb 2004) doesn't load the plugin. (I have placed Xuser.dll in Plugins folder and restarted XnView several times). Also, I tested this with several older versions of XnView, but none of them is listing the plugin when I open "Info/Plugins Informations..." menu.

I have placed some MessageBox calls in every function, but only the DllMain function is called with DLL_PROCESS_ATTACH and DLL_PROCESS_DETACH.
Also I have noticed that the other plugins does not export the functions exported from Xuser.dll sample plugin (gfp.......), and the functions exported from other plugins are gffGetFormatInfo and gffGetPluginInfo.

Is the sample code from PluginsSDK-win.zip suported by XnView?
If it is suported, what version should I use?, and what should I do to make it work?
If it is not suported, could you give me some documentation for gffGetFormatInfo and gffGetPluginInfo functions?
User avatar
xnview
Author of XnView
Posts: 44451
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: interested in creating several custom plugins

Post by xnview »

Costin_Barzon wrote:(I have placed Xuser.dll
in PluginsEx folder and restarted XnView several times).
You must put your dll in Plugins folder!
Pierre.