Board index » delphi » OLE & OLE Running Table
A G
![]() Delphi Developer |
Tue, 17 Feb 2004 00:51:46 GMT
OLE & OLE Running Table
Hello all -
I am attempting to access a function out of another running application. I Thanks, -Aaron |
A G
![]() Delphi Developer |
Tue, 17 Feb 2004 00:51:46 GMT
OLE & OLE Running Table
Hello all -
I am attempting to access a function out of another running application. I Thanks, -Aaron |
Thomas Ros
![]() Delphi Developer |
Tue, 17 Feb 2004 04:06:02 GMT
Re:OLE & OLE Running TableHi Aaron, here's a short example of ROT (Running Object Table) usage... you can read First, you'll need to register the object in the ROT... in this example it var the call use a reference to the object (Self), the Class ID of the CoClass To unregister the object, you'll only need the cookie (FROTCookie from the // Revoke (unregister) object from ROT the second parameter is reserved... just pass 'nil'. For a user (or client) to retrieve the object from the ROT, you'll use var The second parameter is (again) reservered... the last parameter, Unk, is a And don't forget to check the HResult of the calls, or perform a OleCheck on Cheers, Quote"A G" <aa...@ugomedia.com> wrote in message news:3b8e6f54_2@dnews... |
A G
![]() Delphi Developer |
Tue, 17 Feb 2004 07:35:45 GMT
Re:OLE & OLE Running TableTom (and anyone else paying attention), I tried what you said, and I still recieve the 'Operation Unavailable' I have a Service Application with an Automation Object attached to it. The I have a client application that I am trying to run on the same machine. Thank you very much for your help and time, -Aaron Quote"Thomas Rose" <tr...@intellix.com> wrote in message news:3b8e9c0c_2@dnews... |
Binh L
![]() Delphi Developer |
Tue, 17 Feb 2004 08:16:06 GMT
Re:OLE & OLE Running TableAn NT service usually runs under a different account/window station separate from your interative user. The ROT does not work across window stations. If you convert your server to a regular EXE server, the problem should be fixed. Otherwise tip #19 on my site might help. -- Quote"A G" <aa...@ugomedia.com> wrote in message news:3b8ece02$1_1@dnews... Quote> and recieved the same error. I am using - Hide quoted text - - Show quoted text - Quote> to get the class ID. Any ideas why I would still be recieving the error? |
A G
![]() Delphi Developer |
Tue, 17 Feb 2004 08:57:08 GMT
Re:OLE & OLE Running TableThanks for the reply, Binh, I just tried the exact same code as an application instead of a service, and Thanks, -Aaron Quote"Binh Ly" <b...@castle.net> wrote in message news:3b8ed5ae_1@dnews... |
1. OLE OLE OLE MS WORD Tables and Text
3. Word & OLE Automation / COM vs OLE
4. OLE Drag&Drop vs Drag&Drop+Serialization
5. ole container vs ole object
6. More Excel, OLE ... Cell formatting via OLE Object
7. OLE Newbie: Controlling an OLE object from a Delphi 1 app
8. OLE Server and OLE Automationserver
9. OLE container and OLE SERVER
10. OLE DB Provider for ODBC OR Microsoft Jet 4.0 Ole DB Provider