Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activex component can't create object

Status
Not open for further replies.

sharonniles

Programmer
May 31, 2001
38
US
This error message pops up anytime I want to get object or create object at the
Set App line. Does anyone one know what causes this? I'm thinking it has to do with a trust or security setting.

Any help is greatly appreciated.
 
HI,

Please explain what Attachmate product and version.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Hi Skip,

Thanks for checking my post.

Reflections 2014. Whether I GetObject from an existing instance or CreateObject I get the error: Activex component can't create object in the Set sentence.

I think it might be a permissions problem in Reflections Settings, but I can't find it.

In this example, GetObject attaches to a running instance of Reflection by using the Automation server name (the default AutomationServerName value "Reflection Workspace"). This technique allows you to identify a particular Reflection instance even if multiple Reflection instances are active.

Dim ApplicationObject As Attachmate_Reflection_Objects_Framework.ApplicationObject
Set ApplicationObject = GetObject("Reflection Workspace")
ApplicationObject.CreateControl("C:\Users\[Username]\Documents\Attachmate\Reflection\MySession.rd5x")



In this second example, GetObject attaches to a running instance of Reflection . The comma after GetObject indicates that the first argument has been omitted. The line continuation character, an underscore preceded by a space, is used to break up the long line of code.

Dim App As Attachmate_Reflection_Objects_Framework.ApplicationObject
Set App = GetObject(, _ "Attachmate_Reflection_Objects_Framework.ApplicationObject")



In this last example, GetObject opens a new instance of Reflection by returning a reference to the ApplicationObject object. The first argument includes an empty string. The line continuation character, an underscore preceded by a space, is used to break up the long line of code.

Dim App As Attachmate_Reflection_Objects_Framework.ApplicationObject
Set App = GetObject("", _ "Attachmate_Reflection_Objects_Framework.ApplicationObject")

 
I'm sure that you have access to Reflections HELP. here's a site that may also be helpful.
I WAS an Attachmate Extra user, almost exclusively for screen scrapping for my users. I coded in Excel VBA and dumped my results into Excel for further processing by myself or other users, so my experience in Reflections is nil.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top