Check the tool you're generating the type libraries with. I get a
TYPE_E_CANTLOADLIBRARY error when trying to open the attached type library with
oleview.exe (from the Platform SDK/VS2005). The problem seems to be in the coclass.
If that tool cannot open it, it's very likely malformed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem with a type library generated with MIDL. From checking the source, the problem is coming from the native LoadLibraryEx call. LoadLibrary(Ex) will display an error message box whenever you attempt to load a non-DLL image file. Since the code in UtilHarvesterMutator attempts to load the file first as a regular DLL then as a TLB if that fails, you get the message box before it will continue successfully processing the TLB.
Probably should add an explicit file extension check (.TLB) before running it through the DllHarvester.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 21 days (the time period specified by
the administrator of this Tracker).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Bad Image screenshot
One of the offending files
Logged In: YES
user_id=1040952
Check the tool you're generating the type libraries with. I get a
TYPE_E_CANTLOADLIBRARY error when trying to open the attached type library with
oleview.exe (from the Platform SDK/VS2005). The problem seems to be in the coclass.
If that tool cannot open it, it's very likely malformed.
Logged In: YES
user_id=1602924
Originator: YES
Thanks Mike. The file was created with VB6. I can open the file happily with my copy of oleview (v2.10.054)
Logged In: YES
user_id=1174379
Originator: NO
I have the same problem with a type library generated with MIDL. From checking the source, the problem is coming from the native LoadLibraryEx call. LoadLibrary(Ex) will display an error message box whenever you attempt to load a non-DLL image file. Since the code in UtilHarvesterMutator attempts to load the file first as a regular DLL then as a TLB if that fails, you get the message box before it will continue successfully processing the TLB.
Probably should add an explicit file extension check (.TLB) before running it through the DllHarvester.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 21 days (the time period specified by
the administrator of this Tracker).