How to translate this from C++ to Delphi 3?
LPDISPATCH lpDispatch = NULL;
LPOLECOMMANDTARGET lpOleCommandTarget = NULL;
lpDispatch = m_ctlWebBrowser.GetDocument();
// print contents of web browser control
lpOleCommandTarget->Exec(NULL, OLECMDID_PRINT, 0, NULL,NULL);
the answer is somewhere in ActiveX.pas
If I translate this into Delphi it doesn't work. I am using the Internet Explorer 3.02 WebBrowser ActiveX control.
OCT.Exec(GUID_NULL, OLEID_PRINT, 0, variant, variant);
The error it returns is unidentifiable. (BTW the above is as I remeber it - didn't check the syntax).