Exercise 1: Build My First Plug-In
Objectives: Create a new Plug-in project for AutoCount Accounting 1.8 This exercise is to build an AutoCount Accounting Plug-in Package, and successfully load the Plug-in at AutoCount Accounting Plug-in Manager.
Step 1 Add References to Plug-In Project1. Create new “Class Library” project in Microsoft Visual Studio 2015.
2. Name this project as “Tutorial.PRG201”
5. Add below AutoCount Accounting assemblies to project references. |
||||
Step 2 Create Plug-In Entry Point6. Create a class, and Inherit BCE.AutoCount.PlugIn.BasePlugIn. 7. Base class requires 3 parameters at the constructor of derived class.
public override void AfterLoad(BaseArgs e)
{
BCE.Application.AppMessage.ShowMessage(string.Format("Account book {0}\nhas loaded My First Plugin", e.CompanyName));
base.AfterLoad(e);
}
| ||||
Step 3 Build Project into DLL9. Run Build Solution to build Tutorial.PRG201.dll 10. Create a folder “packing” in Solution folder.
11. Copy Tutorial.PRG101.dll to “packing” folder
| ||||
Step 4 Pack Plug-In in AutoCount Plug-In Package (.app)
12. Run AutoCount Plug-in Builder 13. Click [Change Developer Id] to enter Developer Id.
16. Save this as “.appp” (AutoCount Plugin Package Project),
Description is saved in the AutoCount Plugin Package Project (.appp). To retrieve the Description, load the project. To load existing project, click [Open Project]. To start a new empty project, click [New Project]. 17. Click [Build Package] to create “.app file” (AutoCount Plug-in Package).
| ||||
Step 5 Load AutoCount Plug-In Package into AutoCount Accounting18. Login AutoCount Accounting
19. At Plug-In Manager
| ||||
See Also |
Go to top
|
Resources For AutoCount Software Developers
|