[PD-dev] calling external code(.dll) from pd-external(win32xp)
IOhannes m zmoelnig
zmoelnig at iem.at
Wed Mar 12 20:45:34 CET 2008
Martin Peach wrote:
> best boy
>
>> maybe this is a misunderstanding. i try to explain.
>> i want to write a pd external (which will be a dll on win).
>> this pd external should contain code to call functions from another dll
>> which is not pd-related
>>
>
> I think you would still use the same two functions: LoadLibrary to load the
> dll and GetProcAddress to find the address of the function you want to call.
> It won't make any difference if you call the dll from another dll or an exe.
> LoadLibrary() and GetProcAddress() are part of the Windows API and not
> related to pd.
>
i think the question is about simple dynamic linking (without manually
opening the dll and calling an entry-point function therein)
much like Gem linking against openGL.
olli: all externals on w32 do link dynamically against several
libraries. one of them being pd.dll, the other ones including libc.
i think you just need the corresponding "header" .lib and that to the
libraries you link against.
so take any external you like as an example :-)
fgamdsr
IOhannes
More information about the Pd-dev
mailing list