📄 borcvsdllunit.pas
字号:
unit BorCVSdllUnit;
{$IFDEF BCB}
{$OBJEXPORTALL ON}
{$ENDIF BCB}
interface
uses
Windows,
ToolsAPI;
// This function needs to be interface-visible, otherwise
// C++Builder 5 complains about a missing EXTDEF symbol
// for this export.
// Do not call this function yourself.
function InitWizard(const BorlandIDEServices: IBorlandIDEServices;
RegisterProc: TWizardRegisterProc;
var Terminate: TWizardTerminateProc): Boolean; stdcall;
implementation
uses
TBorCvsWizardunit;
const
InvalidIndex = -1;
var
FExpertIndex: Integer = InvalidIndex;
{ Remove the wizard from the IDE. }
procedure FinalizeWizard;
var
WizardServices: IOTAWizardServices;
begin
if FExpertIndex <> InvalidIndex then
begin
Assert(Assigned(BorlandIDEServices));
WizardServices := BorlandIDEServices as IOTAWizardServices;
Assert(Assigned(WizardServices));
WizardServices.RemoveWizard(FExpertIndex);
FExpertIndex := InvalidIndex;
end;
end;
{ Register the wizard. }
function InitWizard(const BorlandIDEServices: IBorlandIDEServices;
RegisterProc: TWizardRegisterProc;
var Terminate: TWizardTerminateProc): Boolean; stdcall;
var
WizardServices: IOTAWizardServices;
begin
Result := (BorlandIDEServices <> nil);
if Result then
begin
Assert(ToolsAPI.BorlandIDEServices = BorlandIDEServices);
Terminate := FinalizeWizard;
WizardServices := BorlandIDEServices as IOTAWizardServices;
Assert(Assigned(WizardServices));
FExpertIndex := WizardServices.AddWizard(TBorCvsWizard.Create as IOTAWizard);
Result := (FExpertIndex >= 0);
end;
end;
exports
InitWizard name WizardEntryPoint;
// ---------------------------------------------
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -