At the end of the def-file, i.e., after the parameter section described in the following section, information about the classes generated for HALCON/.NET must be added, in particular the COM class and library IDs in the subslots iid, clsid, and libid. The example below shows the corresponding information in threshold.def.
class halconuser <- user short.english Sample extension package.; iid {bf6a1001-0b95-11d4-b295-00e0293dc2ac}; clsid {bf6a1002-0b95-11d4-b295-00e0293dc2ac}; library halconuser <- user_library libid {bf6a1000-0b95-11d4-b295-00e0293dc2ac};