OpenDCL Forums

OpenDCL => Source Code => Topic started by: Fred Tomke on January 31, 2008, 02:15:45 PM

Title: GetObject method on Vista when UAC is disabled
Post by: Fred Tomke 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]
Title: Re: GetObject method on Vista when UAC is disabled
Post by: BazzaCAD on January 31, 2008, 02:27:29 PM
I'll probably be able to get more help from http://www.theswamp.org/ (http://www.theswamp.org/)