<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
ok, thank you very much for your help<br>LoadLibrary() and GetProcAddress do the job now.<br>and it seems to work :)<br>bye<br>bb<br><br>&gt; From: martin.peach@sympatico.ca<br>&gt; To: ladataxi@hotmail.de; pd-dev@iem.at<br>&gt; Subject: RE: [PD-dev] calling external code(.dll) from pd-external(win32xp)<br>&gt; Date: Wed, 12 Mar 2008 19:00:21 +0000<br>&gt; <br>&gt; best boy<br>&gt; <br>&gt; &gt;maybe this is a misunderstanding. i try to explain.<br>&gt; &gt;i want to write a pd external (which will be a dll on win).<br>&gt; &gt;this pd external should contain code to call functions from another dll <br>&gt; &gt;which is not pd-related<br>&gt; &gt;<br>&gt; <br>&gt; I think you would still use the same two functions: LoadLibrary to load the <br>&gt; dll and GetProcAddress to find the address of the function you want to call. <br>&gt; It won't make any difference if you call the dll from another dll or an exe.<br>&gt; LoadLibrary() and GetProcAddress() are part of the Windows API and not <br>&gt; related to pd.<br>&gt; <br>&gt; Martin<br>&gt; <br>&gt; &gt; &gt;<br>&gt; &gt; &gt; This little bit from s_loader.c shows how pd loads externals, which are <br>&gt; &gt;dlls<br>&gt; &gt; &gt; on Windows:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; #ifdef MSW<br>&gt; &gt; &gt;     {<br>&gt; &gt; &gt;         HINSTANCE ntdll = LoadLibrary(filename);<br>&gt; &gt; &gt;         if (!ntdll)<br>&gt; &gt; &gt;         {<br>&gt; &gt; &gt;             post("%s: couldn't load external scheduler lib ", filename);<br>&gt; &gt; &gt;             return (0);<br>&gt; &gt; &gt;         }<br>&gt; &gt; &gt;         externalmainfunc =<br>&gt; &gt; &gt;             (t_externalschedlibmain)GetProcAddress(ntdll, "main");<br>&gt; &gt; &gt;     }<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Martin<br>&gt; <br>&gt; <br><br /><hr />Kostenlos bloggen + eigene Homepage + Fotospeicher = MSN Spaces <a href='http://clk.atdmt.com/GBL/go/mcrsddsp0020000048gbl/direct/01/' target='_new'>Kostenlos!</a></body>
</html>