tags:

views:

247

answers:

1

Hi,

I have WMI class in a COM dll. I was trying to create a RCW for it in C#.NET. I used tlbexp.exe to get the type library from the COM dll but it throws an error stating "unable to load one of the dependencies".

I understood that it is trying to load one of the DLL it is referring internally, how can i come to know which dll it is trying to load and can i successfully complete the process if i some how get the dll from internet?

+1  A: 

Use "Dependency Walker" on your DLL.

EFraim
I have used that, it says DWMAPI.DLL is missing. it is a DLL which is not loaded unless it is really needed. how can i overcome this loading?
This says the DLL is delay loaded. Most often this means that the application won't use the functionality from the DLL unless it is present. However it depends on correct implementation on the application's part.
EFraim