Just save the HELLOFUNC.EXE into the {zemaxroot}/EXTEND folder, select the menu item ‘Extensions’ in ZEMAX and select your extension from the drop-down menu that appears. The extension program will then be run and it will start talking to ZEMAX, if ZEMAX is running. Here is a screen-shot showing this being done with the extension HELLOFUNC supplied with this article.