The initial concept and core of this add-in was developed by 'The Trick'. (VB6-Trick-Advanced-Tools)
I needed a stripped-down version of this to just intercept the linking events. Thus other features, also those who causes problems on compiling in some projects ('Global Checking' section, to remove integer overflow checks etc.), are not contained.
By using this linking events you can place a file location which will be shell executed (e.g. batch file).
Reasons for such need are for example to replaces .obj files with Cobj files in order to statically link an C library into the Std-EXE or Ax-DLL.
The batch file to replace .obj with .cobj file could look like this:
However, it detects and preserves in case there is a [TAT] section available from the Trick Advanced Tools to maintain compatibility. In case it is detected a checkbox will appear, giving the opportunity to preserve or break compatibility with the Trick Advanced Tools.
I get a message
LINK : fatal error LNK1181: cannot open input file "KERNEL32.LIB"
I found the KERNEL32.LIB so I put this
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\um\arm64\KERNEL32.LIB /OPT:NOREF /OPT:NOWIN98
In the addin, but I get another error:
...........Incremental Linker Version 6.00.8447
.............
LINK : fatal error LNK1181: cannot open input file "C:\Program.obj"
In replace_cobj.bat there are two statements for copy, but the files *.cobj not exist (there not in the zip file)
I use Windows 10 64bit
Any Idea