<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'><div><font style="" face="Geneva, Arial, Sans-serif">Hello.</font><br><br>I use a external C library (call parent-lib). That library uses a other external library (call child-lib).<br><br>To compile a DLL using a external DLL with Microsoft Visual Studio, you need the lib file of the child-lib.<br><br>If you want to dynamically load those libraries, you need to use "loadlibrary" and so you can choose the folder of your library.<br><br>Sadly, the child-lib cannot dynamically be loaded with Visual Studio.<br>You need to place the child-lib in the same folder that the parent-lib and if you load the parent-lib, it load the child-lib...(same for unload).<br><br>Now, if i use fpc, translate the C header and use DynLibs.LoadLibrary for both libraries... it works, i can load both parent and child libraries, even if they are not in the same folder (and of course access all the functions)...<br>I can also load only the parent-lib or child-lib or both. (even for unload)<br><br>So the question is : Is fpc required to dynamic load C DLL ? ;-)<br><br><br><br><br><br></div> </div></body>
</html>