I remember seeing a post about runtime errors and invalid pointers using
TWebBrowser. I am having the same problem. The solution was to use the
following at the end of the unit:
initialization
OleInitialize(nil);
finalization
OleUnInitialize;
Well I have tried this but Delphi does not recognize these WinAPI calls.
Does anyone know what unit these are declared in? Or do I just not
understand how to use the WinAPI with Delphi?
Any help is much appreciated.
Jason Packwood
Put the statements at the VERY END of the unit. After the last end...
e.g.
>end;
>end.
>initialization
> OleInitialize(nil);
>
>finalization
> OleUnInitialize;
and that should do the trick.
MH.
ps. worked fine for me.
Jason Packwood wrote in message <7aqnuq$ob...@forums.borland.com>...
>Hello,
>
>I remember seeing a post about runtime errors and invalid pointers using
>TWebBrowser. I am having the same problem. The solution was to use the
>following at the end of the unit:
>
>initialization
> OleInitialize(nil);
>
>finalization
> OleUnInitialize;
Make sure ActiveX is in your units clause.
JE McTaggart
Make that the uses clause...
John McTaggart
That seemed to do the trick. Thanks!
Jason Packwood
If you haven't discovered it by now, you need to include the ActiveX unit in
your uses clause.
Toby
Jason Packwood wrote in message <7aqnuq$ob...@forums.borland.com>...
>Hello,
>
>I remember seeing a post about runtime errors and invalid pointers using
>TWebBrowser. I am having the same problem. The solution was to use the
>following at the end of the unit:
>
>initialization
> OleInitialize(nil);
>
>finalization
> OleUnInitialize;
>