Solved

VBScript and security issues with GetObject

Posted on 1997-08-14
2
618 Views
Last Modified: 2012-05-04
I am trying to invoke an Automatiom method from a third party app (Documentum) from VBScript.  When I execute the code, I get the following error:  "Object not safe for scripting".  This is from IE3.02

The code works fine from within VB 5.0

Code below:
---
Sub Button_Click
Dim dmObj
Set dmObj = GetObject(, "Documentum.Workspace32")

dmObj.dmAPIExec("domenu,c,menubar,dc_new_doc_mthd")

End Sub
0
Comment
Question by:tdietz
2 Comments
 

Accepted Solution

by:
MikeHartmann earned 50 total points
Comment Utility
Well, only controls that do not write to the harddisk or the registry are considered "safe". Those safe controls are marked specially and can be used in any IE-setup.
If you want to use "non-secure" controls anyway, the user has to set the IE-security to a lower level (medium or low)

0
 

Author Comment

by:tdietz
Comment Utility
So all someone has to do is mark the object as "Safe for scripting" and it will work?

That doesn't sound like a very good security model.

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now