Thread: How to suppress "suppress messagebox "Unable to Locate Component" message box

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    7

    How to suppress "suppress messagebox "Unable to Locate Component" message box

    Hi
    I a working on a VC++ Win32 application and it depends on a dll to be installed on the system. When this dll is missing it gives out a message box 'suppress messagebox "Unable to Locate Component" - This application has failed to start because xyz.dll was not found. Re-installing the application may fix this problem.

    Can I suppress this messagebox and display my own custom message ( I want to do my own check and display proper instructions).

    Thanks

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Yes, load the dll via the LoadLibrary function (LoadLibrary Function (Windows)) and access the functions in the dll via GetProcAddress (GetProcAddress Function (Windows))

    Add the error checking you need and provide your own response.

    Check out Using Run-Time Dynamic Linking (Windows)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 07:20 PM
  3. message box and unicode problem
    By Jumper in forum Windows Programming
    Replies: 2
    Last Post: 05-11-2004, 02:53 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM