[PD-dev] calling external code(.dll) from pd-external(win32xp)

best boy ladataxi at hotmail.de
Wed Mar 12 19:54:20 CET 2008


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


> From: martin.peach at sympatico.ca
> To: ladataxi at hotmail.de; pd-dev at iem.at
> Subject: RE: [PD-dev] calling external code(.dll) from pd-external(win32xp)
> Date: Wed, 12 Mar 2008 18:16:27 +0000
> 
> best boy wrote:
> >
> >hi,
> >are there any examples (source.c) for calling a dll from within a pd 
> >external?
> >
> 
> This little bit from s_loader.c shows how pd loads externals, which are dlls 
> on Windows:
> 
> #ifdef MSW
>     {
>         HINSTANCE ntdll = LoadLibrary(filename);
>         if (!ntdll)
>         {
>             post("%s: couldn't load external scheduler lib ", filename);
>             return (0);
>         }
>         externalmainfunc =
>             (t_externalschedlibmain)GetProcAddress(ntdll, "main");
>     }
> 
> Martin
> 
> 

_________________________________________________________________
Testen Sie Live.com - die schnelle, personalisierte Homepage, über die Sie auf alle für Sie relevanten Inhalte zentral zugreifen können.
http://www.live.com/getstarted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20080312/88afdfac/attachment.htm>


More information about the Pd-dev mailing list