I'm trying to compile the code snippet at https://gist.github.com/stijnsanders/1724324 using Delphi 6.
Delphi complains that WIALib_TLB.dcu can't be found.
The "Import Type Library" instructions in the snippet indeed creates and displays WIALib_TLB.pas although it's not actually in C:\Program Files (x86)\Borland\Delphi6\Imports as listed in the Project Manager, and I can't find it anywhere else, and neither can I find or create WIALib_TLB.dcu.
I'm guessing I might need to declare some kind of search path, but I'm stuck.
How do I create WIALib_TLB.dcu and get the snippet to compile?
Turns out Delphi 6 generates a WIA_TLB unit, not WIALib_TLB, without definitions for IWia or IWiaDispatchItem, undoubtedly due to changes in Delphi and/or WIA between D6 and whatever Delphi version the snippet is compatible with. (It's still not clear where the generated .pas file actually lives.)