10.2.2.1   Basic Steps

Export

To export the program, use the menu FileExport Program... and select the language (C# - HALCON/.NET). The created file with extension “.cs” contains the HDevelop program as C# source code.

Using the C# Template

If the file has been exported using the option Use Export Template, it is intended to be used together with the predefined C# project that can be found in the directory

  %HALCONEXAMPLES%\c#\HDevelopTemplate

This project contains a form with a display window (HWindowControl) and a button labeled Run. Add the file generated by HDevelop to the project in the Solution Explorer (Add Existing Item). Now the project is ready for execution: Run the project and then press the button Run on the form, which will call the exported code.

Additional information about using the template can be found in the 程序员指南.