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 61977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:24:13+00:00 2026-05-10T18:24:13+00:00

I have built a .dll under WinXP that claims it can’t find DWMAPI.DLL when

  • 0

I have built a .dll under WinXP that claims it can’t find DWMAPI.DLL when it’s loaded. The problem is that this DLL is a Vista DLL, and this a known issue for XP users that have IE7 installed. The recommendation is to uninstall IE7 or repair the .NET Framework via Add/Remove programs. I did the repair, and nothing changed. I’m not about to uninstall IE7 since there must be a better solution that’s not the equivalent of ‘reinstall windows’.

I’ve read bad things about people who attempted to uninstall IE7, so I’m reluctant to go that route.

I am using C++ under Visual Studio 2003 (7.1). I don’t see an option where I may have forced delay loading at application launch. I just used default settings when I created the DLL project. I did just now find an interesting option, Linker->Input->Delay Loaded DLLs, so I put DWMAPI.DLL in there to force it to be delay-loaded. However, I get this when linking:

LINK : warning LNK4199: /DELAYLOAD:dwmapi.dll ignored; no imports found from dwmapi.dll 

.. and it of course didn’t change a thing when trying to load my DLL. For the heck of it, I added the whole tree of DLLs that lead to DWMAPI.DLL, and I get the same message. (For the record, it’s foundation.dll->shell32.dll->shdocvw.dll->mshtml.dll->ieframe.dll->dwmapi.dll .)

To be more specific about what I’m doing, I am writing a Maya plugin and get the always-helpful text in the script editor:

// Error: Unable to dynamically load : D:/blahblahblah/mydll.mll The specified module could not be found.  // // Error: The operation completed successfully.  // // Error: The operation completed successfully.  (mydll) // 

I used Dependency Walker to initially track down the problem, and that’s what lead me to DWMAPI.DLL. These are the message depends gives me, and DWMAPI.DLL is the only thing that has a yellow question mark next to it:

Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. 

Gerald is right. Maya is, in fact, using a different PATH than the Dependency Walker. My plug-in loads another DLL (for image processing) that lives in the Maya plug-ins directory and depends found it with no problem, but Maya didn’t. I had to add ‘;plug-ins’ to the PATH in Maya.env.

Seeing as this problem wasn’t related to DWMAPI.DLL after all, but DWMAPI is a common problem, I’ll post the best link I found about the DWMAPI issue on Novell’s website here. Basically, most programs will have this warning in depends.exe, but if there is a delay-load icon next to it, and you are sure that the program won’t directly or indirectly call DWMAPI, then it’s fine. The problem is elsewhere. If the delay-load icon isn’t present, then you have to look at the /DELAY and /DELAYLOAD options in Visual Studio. The fact that depends gave me a ‘warning’ and not an ‘error’ was a clue to the fact that DWMAPI is not being loaded automatically.

  • 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. 2026-05-10T18:24:14+00:00Added an answer on May 10, 2026 at 6:24 pm

    Based on your updated problem, DWMAPI.dll is probably not your problem. Dependency walker will always give you that error whenever you are linking to mshtml as it always checks delay loaded DLLs.

    At this point my best guess is that you have your project set to dynamically load the runtime libraries and the search path for DLLs is being changed by Maya. So it may be unable to find the MSVC runtime DLL(s). I haven’t developed Maya plugins in a long time, but I’ve had that problem with other apps that have plugin DLLs recently.

    Try changing your setting in C/C++->Code Generation->Runtime Library to Multi-Threaded rather than Multi-Threaded DLL.

    Aside from that you can try fiddling with Dependency Walker to make it use the same search paths as Maya and see if you can come up with another dependency problem.

    As a last resort you can launch Maya in a debugger and set a breakpoint on LoadLibrary and find out which library is not being loaded that way.

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

Sidebar

Related Questions

I have a project that comprises pre-build Dll modules, built some time in the
I have a visual C# 2010 express install. Built a .NET 4.0 dll that
I have build a c# class library verification.dll using OpenCVSharp. This references OpenCvSharp.dll in
The situation is this: I have a shared (DLL) build of Qt 4.5.1 and
In my debug build I have a reference to a DLL that is only
I have a DLL that contains all my object I need to build my
I have built so far an application that allows the user to drag and
I am working on a DLL that a webservice I have uses, I added
I have a Java project that uses this driver for serial communication. The driver
I have a project that runs perfectly well under windows 7, x86 installation. On

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.