<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>From: ewald@yellowcouch.org<br><div>Date: Mon, 13 Jan 2014 21:25:27 +0100<br>To: fpc-pascal@lists.freepascal.org<br>Subject: Re: [fpc-pascal] windows.GetProcAddress() vs    DynLibs.GetProcAddress()<br><br><br><div><div>On 13 Jan 2014, at 17:33, Fred van Stappen wrote:</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;"><div dir="ltr">Hello and many thanks to help.<br><br>Here demo to show the problem (i hope).<br><br>>><span class="ecxApple-converted-space"> </span><a href="https://sites.google.com/site/fiensprototyping/dynlib_vs_windows.zip" target="_blank">https://sites.google.com/site/fiensprototyping/</a><span id="ecxsites-admin-attach-title-wuid:gx:4f8598ae8b5d093f"><a href="https://sites.google.com/site/fiensprototyping/dynlib_vs_windows.zip" target="_blank">dynlib_vs_windows.zip</a></span><br></div></div></span></blockquote><div><br></div><div><br></div></div><div>in the dynlibs version, why do you use `PChar(1)` or `PChar(2)` [or ....] instead of the name of the function as the second argument in GetProcAddress()? Perhaps try `GetProcAddress(LibHandle,  'soundtouch_clear');` on line 54 and modify the rest in a similar fashion?</div><div><br></div><div>Hope it helps.</div><div><br class="ecxwebkit-block-placeholder"></div><div><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><div style="font-size:medium;color:rgb(0, 0, 0);font-style:normal;">--</div><div style="font-size:medium;color:rgb(0, 0, 0);font-style:normal;">Ewald</div></div></span></div></span></div></span></div></span></span>
</div>
<br><br>_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br><br>Yep Ewald, many thank to help us ( and me).<br><br>The SoundTouch.dll uses index to call the procedures.<br><br>Like that :<br> [Ordinal/Name Pointer]<br>    [   0] soundtouch_clear
<br>    [   1] soundtouch_createInstance
<br>    [   2] soundtouch_destroyInstance<br><br>>> try `GetProcAddress(LibHandle,  'soundtouch_clear');<br><br>I have try that, but it does not work...`<br><br></div>                                       </div></body>
</html>