Is there any way to stop a compile proceeding through the API after the Compile button has been pressed?
i.e. in the NotifyPreCompile Event could I do anything to abort the Compile?
IDE - API Question
Moderators: David Barker, Jerry Messina
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
The original plugin sample pack has an example of this call, but in summary:
and
Code: Select all
// 1.0.1.1
procedure plgAbortCompile(pShowResults:BOOL);stdcall; external DLL_NAME name 'AbortCompile';
procedure plgAbortProgram;stdcall; external DLL_NAME name 'AbortProgram';
Code: Select all
case Message.wParam of
NOTIFY_PRE_COMPILE:
begin
plgAbortCompile(false);
Caption := 'COMPILE ABORT!!';
end;
NOTIFY_PRE_PROGRAM:
begin
plgAbortProgram;
Caption := 'COMPILE ABORT!!';
end;