View Single Post
Old 15th April 2020, 12:45   #15  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
From Wiki:- http://avisynth.nl/index.php/Plugins#LoadPlugin
Quote:
LoadPlugin

Loads one or more standard (C++) AviSynth plugins.

LoadPlugin(string filename [, string filename...])

string filename =

The path of the .DLL file(s).
No mention at all of return type.

Quote:
never heard of AvsEdit
Dont bother trying it, its infuriating, written in either Delphi or VB I think [I got the source somewhere, maybe].
EDIT: I use PsPad (mostly for quick hack/init of script, thereafter usually VD2 unless final formatting text, TAB expand to SPACE for D9 or similar).

EDIT: Actually, LoadPlugin (in Avs+ v3.5) returns True, so returning pointer to string or 0 (null pointer) is now moot.
Code:
Function LoadPlugReturnValue(string PlugName) { return "'" + string(LoadPlugin(PlugName)) + "'" }

Plug1="C:\Z\Example.dll"          # x64 Example.dll (source returning something like: "'Example' Example filter")
Plug2="C:\Z\TweakColor.dll"       # x64 TweakColor recompile DG (source returning 0)

s1=LoadPlugReturnValue(Plug1)
s2=LoadPlugReturnValue(Plug2)

S="Plug1 '" + Plug1 + " = " + s1 + Chr(10) + \
  "Plug2 '" + Plug2 + " = " + s2
return MessageClip(S)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 15th April 2020 at 13:41.
StainlessS is offline   Reply With Quote