Hello ,
to set your variables verify where you have install Open CASCADE. After if you set all your variables in a prompt you must start your applications (Samples,...) in this same prompt. If you use Windows NT you could set this variables in the control panel/system/Enviroment If you use W95/98 please refer to the faqs.
regards
Arnaud