Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

External dll packing with NPAPI Plugin extension

I created an NPAPI plugin. It uses two other Dlls.
I need to pack those Dll files along with Plugin dll as Extension.
How can I do that? So that I can Place that dll to any folder and register it.

Is there any way to do this?

Sorry if its a duplicate.

thanks in advance.

like image 767
Akhil Avatar asked Nov 04 '22 10:11

Akhil


1 Answers

If you pack it as an extension, you just put the two DLLs you need in the same directory in the extension as the plugin DLL.

Note that some browsers the search path may have difficulties finding those DLLs; if you find this to be the case you could try DELAYLOAD linking those DLLs and use SetDllDirectory to add the plugin dll directory to the path.

like image 87
taxilian Avatar answered Nov 09 '22 09:11

taxilian