tag:blogger.com,1999:blog-1077468864044303325.post5376769608701350846..comments2023-08-30T17:46:36.733+02:00Comments on Behind the connection: Delayed loading of a DLLFPiettehttp://www.blogger.com/profile/08260455911271500004noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1077468864044303325.post-73759122483485449202013-07-04T15:31:28.919+02:002013-07-04T15:31:28.919+02:00It's worth noting this is actually a feature p...It's worth noting this is actually a feature ported over from C++ Builder, which has had it for some time. (C++ Builder 6? I'm not sure.) You can specify a DLL name in the project options, and all functions in it will be delay-loaded.<br /><br />In a way, this is simpler than a keyword per function, although it does mean that you can't mix normally linked and delay-loaded functionsDavehttps://www.blogger.com/profile/05039004653244724673noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-55387944641065160792013-07-01T07:30:16.041+02:002013-07-01T07:30:16.041+02:00On the other hand, this only goes half-way of dyn...On the other hand, this only goes half-way of dynamic loading, f.i. when functions are only supported on certain versions of a DLL, delayed becomes more complex to use without crashes. Another issue with delayed is that you don't have control over which DLL is actually going to be used, unlike LoadLibrary.Erichttps://www.blogger.com/profile/05912696305224378407noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-1651647074961517512013-07-01T07:29:52.192+02:002013-07-01T07:29:52.192+02:00On the other hand, this only goes half-way of dyn...On the other hand, this only goes half-way of dynamic loading, f.i. when functions are only supported on certain versions of a DLL, delayed becomes more complex to use without crashes. Another issue with delayed is that you don't have control over which DLL is actually going to be used, unlike LoadLibrary.Erichttps://www.blogger.com/profile/05912696305224378407noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-10618553132320143402013-06-30T07:56:26.097+02:002013-06-30T07:56:26.097+02:00Typo fixed. Thanks.Typo fixed. Thanks.FPiettehttps://www.blogger.com/profile/08260455911271500004noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-78346378030226232182013-06-30T03:13:02.195+02:002013-06-30T03:13:02.195+02:00Nice tip!
When you say "Just add delayed keyb...Nice tip!<br />When you say "Just add delayed keyboard in each function" I guess you mean "Just add delayed keyword"...<br />Alexandre Caldas Machadohttps://www.blogger.com/profile/01461341015084340422noreply@blogger.comtag:blogger.com,1999:blog-1077468864044303325.post-28238363347775091922013-06-29T18:24:57.374+02:002013-06-29T18:24:57.374+02:00Nice to know this. Good bye to GetProcAddress.Nice to know this. Good bye to GetProcAddress.Anonymoushttps://www.blogger.com/profile/01545328313711727680noreply@blogger.com