>Where do I have to add&call the 'procedure ActivateWindow'?
>
Chaim,
You may call this procedure in your small project on exit (passing the big project's hwnd) or you can try to call it from the big project too.
If it's not broken, fix it until it is.
My Blog