troubleshooting Question

Running standard c function system "Run as administrator"

Avatar of yyyannag
yyyannag asked on
Editors IDEsC.NET Programming
6 Comments1 Solution1667 ViewsLast Modified:
Hello all

I'm trying to register my COM server programatically from c++ code using standard c function system (const char*), or alternatively any of the _exec* function family. It works fine under XP systems, however on Vista, it doesn't register the COM server. When I try to register my COM server directly from cmd ([serverpath] /regserver), I get no error at all, but the registration is not made. However, when I execute cmd.exe using the "Run as administrator" option, the registration succeeds.

My question is: How can I register my COM server on vista machines from the c++ code (perhaps using one of the _exec* functions with some special parameters)?
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros