Compile Some Functions Into DLL

Can a form with few functions etc be compiled into a Pure DLL to be used with other applications/tools/languages ? Like be called from Powerbuilder ?