 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Joseph Chismon Guest
|
Posted: Tue Apr 03, 2007 1:15 am Post subject: Connecting to a OLE server |
|
|
I am looking for the Delphi equivalent of the VBA GetObject command
I am using the IBM Reflection 3270 telnet emulator and I am writing Delphi
code to connect to it.
I have tried using GetActiveOLEObject("ReflectionForIBM.Session");
ReflectionForIBM.Session is the OLE CLSID that gets installed when
Reflections installs.
Unfortunately when you have more than one telnet session running, the above
call returns one of the sessions but it is not possible to predict which
one.
Within the Reflection session you can set a property which it calls
OLEServername, which can be set uniquely for each telnet session.
Using VBA you can issue call GetObject("whatever you put in oleservername")
and it returns the correct session - hurrah!
Sadly, I am so far unable to find a Delphi code equivalent for the VBA
GetObject("string"), where the string is the what the server exposes as its
'OleServername'
I would be grateful for any help with this |
|
| 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
|
|