Can some one explain what I am doing wrong? After I successfully open IE from Lazarus, then I try to access it again later in code, I will get a "RPC server unavailable" error message. In an attempt to overcome that error, I decided to try and "find" the Ole object by using GetActiveOleObject(). But that fails too... even immediately after the successful creation of the Ole object.
uses ... Windows, ComObj;
...
Browser := CreateOleObject('InternetExplorer.Application'); // <--- this line succeeds
Browser := GetActiveOleObject('InternetExplorer.Application'); // <--- this line fails
...
Error displayed:
Operation unavailable.