6.6   Export Program Dialog

See also: hdevelop -convert (command line switch).

Using this dialog, you can select an export format and write (parts of) the current program to a file in that format. The dialog is displayed in figure 6.6.

Figure 6.6: Export.

The button next to the export file name opens a file selection dialog to select a file name and an export format. The following formats are supported:

Format Syntax Extension More information

Text File HALCON/HDevelop .txt Plain text export
C HALCON/C .c section “Code Generation for C”
C++ HALCON/C++ .cpp section “Code Generation for C++”
Visual Basic .NET HALCON/.NET .vb section “Code Generation for Visual Basic .NET (HALCON/.NET)”
C# HALCON/.NET .cs section “Code Generation for C# (HALCON/.NET)”

The file name extension corresponding to the selected export format is appended to the specified file name.

Export Range  
 

The export range specifies which parts of the current program are to be exported.

The short description and chapter information of procedures are exported as comments. Arbitrary code can be embedded with special comment lines (see section “General Aspects of Code Generation”).

Procedure Options  
 

Defines the export behavior for procedures.

Window Export  
 

Specifies the export behavior of HALCON windows:

Encoding  
 

Specifies the encoding of exported programs.

For C/C++, the encoding must match the interface encoding used by the application. For C#, exporting to UTF-8 should always work fine.

Namespace  
 

Can be used to avoid name conflicts between exported code and existing names in the client application, or to avoid name conflicts between multiple exported libraries in the same client application.

Keep dialog open  
 

Checking this box keeps the dialog open for subsequent exports.