Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PM on new Win 10 PC
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01665495
Message ID:
01665532
Views:
96
You probably have a COM object as part of your project. When VFP compiles it wants to register any COM classes and you need to Run As Admin to do that.

You can check your project, look on the server tabs. if there are COM objects showing up there they'll register when you compile.

The only workarounds for this are:

* Remove the COM class (or make it conditionally COM with a double #define block)
* Run VFP as an Administrator

Or don't compile your project and run PRGs.

We have this same issue with Web Connection BTW. Since servers are COM objects they write to the registry and require Admin rights when building and running the EXE. Most of my applicatinos implement one COM server or interface so this really applies to just about any application and it's one reason i always run from source files until I need to build.

One more thing that shows the age of FoxPro... :-) when running as an Admin was the norm.

+++ Rick ---

>Hi all,
>
>Have moved my dev stuff to a new Win 10 PC (from Win 7) and when I compile a project into an .exe, I get the message "Access to system registry denied". I take it it is from trying to register a type library.
>
>Could not find an option either in the project or general options to turn off registering the type library (not even sure it is needed).
>
>Albert
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform