Questions tagged [delay-load]

22 questions
1
vote
0 answers

Delay-loading a C libary in C++ code

I'm currently trying to load the ffmpeg library (in C) into my C++ project. The library consists of headers, .lib files and .dll files, all of which I loaded and used successfully. However, it is strongly desirable for our project to have these dll…
Bas in het Veld
  • 1,271
  • 10
  • 17
1
vote
1 answer

Delay-load crypto++ cryptopp.dll

The Crypto++ library supports late binding by compiling against cryptlib.lib and cryptopp.lib. This requires to use the cryptopp.dll. When trying to delay-load this dll by /DELAYLOAD:cryptopp.dll this causes a link error that it could not be delay…
1
vote
2 answers

Delay-Load in Windows

I am trying to get my head around some code (adapted straight from PyCXX). It is a multiplatform C++ Python wrapper. EDIT: Original code here. It appears to be catering for some particular phenomenon that only exists in Windows: #ifdef…
P i
  • 29,020
  • 36
  • 159
  • 267
1
vote
1 answer

cannot open input file 'Delayimp.lib'

I am compiling a project under Visual Studio 2013 (OS: Windows 7). The Project is compiled with the Platform Toolset "Visual Studio 2008 (v90)". In the options I have set a dll to be loaded delayed like this: /DELAYLOAD:"PluginPost.dlll" The error…
Heinrich Heine
  • 303
  • 3
  • 12
1
vote
2 answers

Use delay load to load correct library - return value type error

I used msdn documentation here: http://msdn.microsoft.com/en-us/library/f0fkfy9y(v=vs.100).aspx It specifies there that: case dliNotePreLoadLibrary : //If you want to return control to the helper, return 0. //Otherwise, return your own HMODULE to be…
sara
  • 3,824
  • 9
  • 43
  • 71
0
votes
0 answers

How to handle a missing function in a delay-loaded DLL when using MSVC 16?

In macOS, I can use weak linking to allow use of older versions of a library. In that case, any function I've linked to that's not present in the library resolves to null, and I can check whether the function is available before calling it, e.g. if…
Bri Bri
  • 2,169
  • 3
  • 19
  • 44
0
votes
1 answer

DelayLoad different libraries with identical names

I have the following scenario: An executable application can be customized by dlls and multiple of these customizations can be started in parallel. For common tasks these dlls can use dynamically linked open source libraries like OpenSSL…
1
2