typelib.pas generates wrong *_TLB.pas files
Original Reporter info from Mantis: JoshyFun @joshyfun
-
Reporter name: José Mejuto
Original Reporter info from Mantis: JoshyFun @joshyfun
- Reporter name: José Mejuto
Description:
iUnknown interface functions are not imported, so any interface that exposes this funcions is wrongly imported as function index is shifted by one.
This excluded functions are QueryInterface, AddRef, Release and IDispatch ones GetTypeInfoCount, GetTypeInfo, GetIdsOfNames and Invoke.
This functions must be imported.
Some parameters requires "val" (byref) modifier.
Additional information:
The attached patch fixes both problems. It has been tested with several TLBs
The remove of functions like "QueryInterface" has been commented instead plain remove because I do not know the exact reason as the original developer left this functions out of import.
Mantis conversion info:
- Mantis ID: 27486
- OS: Windows
- OS Build: Seven
- Platform: x64
- Version: 3.0.1
- Fixed in version: 3.1.1
- Fixed in revision: 32823 (#ca2b1f97)
- Target version: 3.0.2