Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:30:26+00:00 2026-05-28T21:30:26+00:00

I have a VC++ application compiled against a third party DLL (using their LIB

  • 0

I have a VC++ application compiled against a third party DLL (using their LIB file, of course).

The thing is that not every scenario involves the code of that DLL, but Windows refuses to start the application, if the particular DLL is missing.

I am wondering, how can I workaround this constraint. I would like the application to crash only if the aforementioned DLL is really needed.

Please, ignore the question, whether it is a good taste when an application crashes after it has successfully started – I will take care of it.

How can I defer the DLL resolution until that DLL actually needs to be loaded?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:30:27+00:00Added an answer on May 28, 2026 at 9:30 pm

    See the /DELAYLOAD linker option:

    The Visual C++ linker now supports the delayed loading of DLLs. This relieves you of the need to use the Windows SDK functions LoadLibrary and GetProcAddress to implement DLL delayed loading.

    Before Visual C++ 6.0, the only way to load a DLL at run time was by using LoadLibrary and GetProcAddress; the operating system would load the DLL when the executable or DLL using it was loaded.

    Beginning with Visual C++ 6.0, when statically linking with a DLL, the linker provides options to delay load the DLL until the program calls a function in that DLL.

    An application can delay load a DLL using the /DELAYLOAD (Delay Load Import) linker option with a helper function (default implementation provided by Visual C++). The helper function will load the DLL at run time by calling LoadLibrary and GetProcAddress for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my DirectShow application I have a third party DLL (a 32bit DirectShow filter)
I have a library compiled into a .a file, linked against my application. (iphone,
We have a MFC 8 application compiled with /CLR that contains a larger amount
I have a following problem: I compiled my application on Linux Ubuntu 9.10 using
I have compiled a .NET application using Any CPU option. This .NET application uses
I have a vb.net Winforms application. I also have a compiled help file (chm)
I have a gcc-compiled application linked against dynamic libraries. Is there a way to
I have an application that uses wxWidgets as a the UI framework and compiled
I'm using Visual C++ 2008 SP1. I have an app that is compiled in
I have an application that has reference to Microsoft.Data.SqlXml.dll assembly (part of SQLXML ).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.