GetObject method on Vista when UAC is disabled

Started by Fred Tomke, January 31, 2008, 02:15:45 PM

Previous topic - Next topic

Fred Tomke

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

a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom