 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kim Doran Guest
|
Posted: Wed Jan 28, 2004 10:13 am Post subject: Excel Automation - failed OleCheck call |
|
|
Hi,
I'm trying to make a call from Excel to my Delphi program. When the call
arrives in my code from the VBA macro I make a call to get a handle to the
running excel application. The first part of this call is to
OleCheck(AResult) which throws an EOleSysError exception - 'The object
exporter specified was not found' . This culminates in VB message in excel -
'Run time error '-2147418113 (8000ffff)'. Does anyone know what causes this
failure in the OleCheck call??? All suggestions welcome.
var
AResult : HRESULT;
begin
...
...
OleCheck(AResult); //fails here
OleCheck(Unknown.QueryInterface(_Application, XLApp));
...
...
Thanks
-Kim
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|