Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

NT Permisions with OLE/VB6

NT Permisions with OLE/VB6

NT Permisions with OLE/VB6

As requested I attach a paint document showing error.

I am using VB6 running on NT4 under a username with administrator privileges. Word is 97-SR2.

I start VB6, open a new project and place an OLE control on the form.
I then pick Word document as the object to insert into the control. The message "Permission to use object denied" is then displayed.

This seems to happen to most Microsoft objects that I try to load (perhaps all Office objects). Others like image, which is the Wang viewer, load quite happily.

Any help gratefully received. One more point is that Microsoft Office is installed on both NT and Windows97 partitions and they share software.


RE: NT Permisions with OLE/VB6

We are having a problem which might be related. If so, we could advise the other when the solution is found.

We create true multi-tier applications using VB6, DCOM and Windows NT 4.0 Server. Our problem is that unless we give users Administrative permission then DCOM cannot work between client and server. Obviously such permission should be withheld from most clients.

I'll post the solution here when we find it. Would appreciate your doing the same.

John K

RE: NT Permisions with OLE/VB6

One work around might be to submit processes to the schedule service (or any service you write that you could pass requests to) you start the service with admin rights then when it submits the DCOM requests they arrive with admin rights. I know its a goofey work around but just a suggestion. As for shaft if you are logged into a machine with local admin rights under NT there is nothing you shouldn't be able to do. unless you are launching a process under the system authority or something like that.

RE: NT Permisions with OLE/VB6

Shaft, I haven't tried this yet and won't for a few days. But it looks like the solution so I'm passing it along.

Microsoft has published Windows/2000 Distributed Application specifications for app certification. Even some sample code is included for this permissions issue. It involves something called impersonation and is available in NT/Server 4.0.

Hope this helps. John

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close