... function or do we have to releasedc() ? Thanks for reply I made some minor changes to Bill's sample, setting locals variables instead of public , quitting after signature, here is mine #include "C:\FWPPC\INCLUDE\FWCE.ch" #include "C:\FWPPC\INCLUDE\DLL.ch" function Main() local oMain, oSig, nHdc, ...