BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Connecting to a OLE server

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Joseph Chismon
Guest





PostPosted: Tue Apr 03, 2007 1:15 am    Post subject: Connecting to a OLE server Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.