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

This is a discussion on How to suppress "suppress messagebox "Unable to Locate Component" message box within the Windows Programming forums, part of the Platform Specific Boards category; Hi I a working on a VC++ Win32 application and it depends on a dll to be installed on the ...

  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,789
    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-06-2010, 12:42 AM
  2. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 08:20 PM
  3. message box and unicode problem
    By Jumper in forum Windows Programming
    Replies: 2
    Last Post: 05-11-2004, 03:53 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21