did that a long time ago, it wont be realy clear
you need to link the good library to the forms and windows and ...
the easyest way is to copy a working forms
remove all the block and other unwanted stuff
and build your custom in it
you will be sure to have all the needed object linked