Exercise 1: Build AutoCount Accounting 2.0 Plug-In: Difference between revisions

From AutoCount Resource Center
Content added Content deleted
No edit summary
No edit summary
Line 11: Line 11:
# Select "Windows Forms App (.Net Framework)
# Select "Windows Forms App (.Net Framework)
# Enter project name: MyPlugIn2
# Enter project name: MyPlugIn2
*Click [OK]
<br />
<br />

===Add AutoCount Accounting 2.0 References to Project===
===Add AutoCount Accounting 2.0 References to Project===
[[File:BrowseReference.PNG|link=]]
[[File:BrowseReference.PNG|link=]]
{{Note|Suggest to copy the dll to a folder and rename the folder to AutoCount Accounting version. Eg.: AC2.0.55.<br />So that when necessity arises, programmer can maintain multiple versions of Plug-Ins.}}
# Add References Window
# Add References Window
# Browse to AutoCount Accounting 2.0 folder
# Browse to AutoCount Accounting 2.0 folder
#*Default '''path of 64bit''' AutoCount Accounting is '''C:\Program Files\AutoCount\Accounting 2.0\'''
#*Default '''path of 64bit''' AutoCount Accounting is '''C:\Program Files\AutoCount\Accounting 2.0\'''
# DLL files are assemblies of AutoCount Accounting that can be added to project references
# DLL files are assemblies of AutoCount Accounting that can be added to project references
*Click [Add]
{{Note|Suggest to copy the dll to a folder and rename the folder to AutoCount Accounting version. Eg.: AC2.0.55.<br />So that programmer can maintain different versions of Plug-Ins.}}

===Adding AutoCount Accounting 2.0 '''Base Assemblies'''===
# AutoCount.dll
# AutoCount.CommonAccounting.dll
# AutoCount.MainEntry.dll
# AutoCount.WinForms.dll


<br />
<br />
Line 26: Line 33:
# Add a class to project.
# Add a class to project.
# Name the class "PlugInMain.cs"
# Name the class "PlugInMain.cs"
*Click [Add]

Revision as of 08:27, 16 November 2017

Go to menu

Go to top
Resources For AutoCount Software Developers


Objectives: Create a new Plug-in project for AutoCount Accounting 2.0
This exercise is to build an AutoCount Accounting Plug-in Package, and successfully load the Plug-in at AutoCount Accounting 2.0 Plug-in Manager.
Project in this tutorial is created with Microsoft Visual Studio 2017 Community

New Plug-In Project

  1. Create a new "Visual C#" Project
  2. Framework is .Net Framework 4.5
  3. Select "Windows Forms App (.Net Framework)
  4. Enter project name: MyPlugIn2
  • Click [OK]


Add AutoCount Accounting 2.0 References to Project

Suggest to copy the dll to a folder and rename the folder to AutoCount Accounting version. Eg.: AC2.0.55.
So that when necessity arises, programmer can maintain multiple versions of Plug-Ins.
  1. Add References Window
  2. Browse to AutoCount Accounting 2.0 folder
    • Default path of 64bit AutoCount Accounting is C:\Program Files\AutoCount\Accounting 2.0\
  3. DLL files are assemblies of AutoCount Accounting that can be added to project references
  • Click [Add]

Adding AutoCount Accounting 2.0 Base Assemblies

  1. AutoCount.dll
  2. AutoCount.CommonAccounting.dll
  3. AutoCount.MainEntry.dll
  4. AutoCount.WinForms.dll


Add Class PlugInMain.cs

  1. Add a class to project.
  2. Name the class "PlugInMain.cs"
  • Click [Add]