Problem using ActiveX control in D5 COM server

I've got a COM server that contains a 3rd-party ActiveX control on its main
form.  The code runs fine on D4.03 but trying to run when compiled under D5
causes problems.  I get an EOleError error when the main form is created:

"Could not obtain OLE control window handle"

The control is PDQCOM32.OCX.  If I set the controls Visible property to
false no error occurs.  The imported type libary for the control shows
dependancy files as:

// DepndLst:
//   (1) v1.0 stdole, (C:\WINNT\System32\stdole32.tlb)
//   (2) v2.0 StdType, (C:\WINNT\System32\OLEPRO32.DLL)
//   (3) v1.0 StdVCL, (C:\WINNT\System32\STDVCL32.DLL)

Any ideas or workarounds?

Andrew Jackson
CCC Technology Ltd.