Hi,
>- write FLL with C++(can delphi do this?), place many fundation functions in it , call
> them everywhere. The functions will do some security and license job(deal with dogie).
Sounds like a good plan. However, you should ensure that what you are calling is really the FLL. Otherwise, someone could create .PRG files for every FLL function and bypass your security checks this way. It might be usefull to put some of your code into a DLL. Everytime you call a DLL function you declare it again using a random alias like SYS(2015). Then call the function with this alias name. This prevents that someone could create a program with the same name, because the name changes each call. There's a performance penalty, though, and you still have to verify that the DLL is the correct one.
As I said, there's always a way to bypass security mechanism and the real question is how much effort you want to spend on it.
Christof
--
Christof