I'd like to add a dcu file to a project before compiling it. I'm trying to use the OTA to this. In IOTAProject I have the option to add a file (AddFile()), but when I try to add a dcu it doesn't allow me, and I must set the file as the first file in my project.
I'd like to simulate some thing like:
------------------ Original project
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
etc...
------------------- Before compile I intercept it and set
program Project1;
uses
MyDCU, //Add this
Forms,
Unit1 in 'Unit1.pas' {Form1};
etc...
------------------ After compile remove and it came back to
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
etc...
The after/before compiling interception is not the problem IOTAIDENotifier give me the necessary interface to work with. The problem is only with the dcu file as the first file of my project.
Someone can help me? Tks