Author Topic: GetObject method on Vista when UAC is disabled  (Read 6364 times)

Fred Tomke

  • OpenDCL Technician
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2070
  • [ Mr. Bad Guy ]
    • Kommunale Entwicklungsplanung auf digitaler Basis - digital landscape and urban design
GetObject method on Vista when UAC is disabled
« on: January 31, 2008, 02:15:45 PM »
Hello,

I know, that my question does not belong herein, but I need the help of good people with many experiences in Vista.
I have a problem not with OpenDCL but I'm sure some Vista users of you already had the same problem.

When I try to get an Autocad object, in Microsoft Word for instance, I use the GetObject method and the "autocad.application" key.

Set oAcadApp = GetObject(, "AutoCAD.Application")

In Vista this only works, when the User Account Control (UAC) is enabled. Many of our users disables UAC. But then I cannot start AutoCAD by using the GetObject method. This is not only a matter of Word: we also start our application getting the AutoCAD-object by using the development environment VisualObjects.

You see a little application attached. This was written in C# .NET (by me and I've lost the code during the last formatting  :'( ). However, the only thing this application does, is to get an AutoCAD object using the GetObject("AutoCAD.Application")-method and shows how long does it take. (You can only start it from local drive only). Please, try it with enabled UAC and with disabled UAC and feel the difference.

How can I get the AutoCAD-object using the GetObject("AutoCAD.Application")-method when the UAC is disabled?

Regards,
Fred Tomke


[attachment deleted by admin]
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

  • OpenDCL Webmaster
  • Administrator
  • Hero Member
  • *****
  • Posts: 853
  • Cylons will kill you
    • OpenDCL
Re: GetObject method on Vista when UAC is disabled
« Reply #1 on: January 31, 2008, 02:27:29 PM »
I'll probably be able to get more help from http://www.theswamp.org/
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom