Skip to content

Step by Step Create Total plugin project

Swift Expat edited this page Mar 13, 2022 · 5 revisions

This is a Step by Step guide to creating a TOTAL plugin.

Create your new project

In Delphi, go to File --> New --> DLL

image

Save your project.
Add a new unit to the project and save.

Configure Project Options

Compiler

Open project options and go to Delphi Compiler.

  1. Change target to "All Configurations - WIN 32bit"

  2. Add a conditional Define for EXPERT.
    image

  3. Add TOTAL and Kastri to Search Path.
    image

Runtime Packages

Go to Packages, Runtime Packages.

  1. Change target to "All Configurations - Win 32Bit"
  2. Link with Runtime Packages = true
  3. Runtime Packages add these designide;vclx;vcl;vclimg;rtl .
    image

Debugger

  1. Change target to "All Configurations - Win 32Bit"
  2. Host application = C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\bds.exe .
  3. Parameters = -np -r SEIEDev.
  • np disables welcome screen
  • -r creates a seperate profile to debug in.
    image

Create Resources

Create a subfolder in your project called Resources copy in your icon copy in Icon.rc from this project and edit with your icon name

Edit DPR file

Add Include and Resoure directives after library {$R 'Icon.res' 'Resources\Icon.rc'} {$I DW.LibSuffixIDE.inc}
image

Add Code to your Unit

Setup is now complete, just add code to your unit file