beautypg.com

Echelon i.LON SmartServer 2.0 User Manual

Page 169

background image

i.LON SmartServer 2.0 Programming Tools User’s Guide

155

Tips:

• You should obscure the name of the license validation routine (and other symbols shown in

all capitals) to help secure your FPM application. To do this, define a macro with the same
name as the symbol and then specify a name translation for it. For example, the following
macro could be defined for the license validation routine created in step 2.

#define FPM_CHECK anotherFPMfunction

• You can alternatively create your license validation routine as a static file-scope routine. This

enables the symbol name to be removed from the final object code module. Symbols for C++
class methods are always defined as global—even if they are a private class method—so that
they cannot be as easily removed from the object code module. However, if you have a lot of
class methods, using an intentionally misnamed method placed among the other methods may
be sufficient.

3. Click the tab for the source file view. Insert the following code before or after the

Initialize()

routine:

void CUFPT<FPM Name>::<FPM license validation routine name>()

{
}