Based on a message on the thread, I did the following code (It is used when doing a Crystal report, to make sure my app is waiting for completion of Crystal):
#DEFINE WS_MAXIMIZE 29949952
Declare integer GetForegroundWindow in WIN32API
Declare short IsWindow in WIN32API
...blablabla I call Crystal in preview mode...
lnHwndActiveX = GetForegroundWindow()
Do while IsWindow(lnHwndActiveX) # 0
Enddo
It fail on the second line (Declare integer GetForegroundWindow...).
DO I have to do something else in order to use Win32api ?
Thanks
ERic