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:
01665559
Views:
98
Yeah you can't fix VCX classes.

In Code classes you can do:
#IF WWC_DEVELOPMENT
    DEFINE CLASS MyServer as Custom
#ELSE
    DEFINE CLASS MyServer as Custom OLEPUBLIC
#ENDIF
This lets you get around the COM registration issue.

But if you have COM servers in your project that means that everytime you compile the application will write to the registry and you have to run as an Admin unfortunately. Don't think there's a way around that.

+++ Rick ---

>I run from source files until I need to build an exe. Looking on that tab, there are two classes and digging into them, they are part of a spell checker built into the VMP framework. I actually don't call them anywhere as I removed them from the default menu system. But the class is loaded for other reasons.
>
>I can live with it. Not sure what you mean by a double #DEFINE block? Since the OLE control seems to be part of the .vcx, where would the #DEFINE go?
>
>Albert
>
>>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
Reply
Map
View

Click here to load this message in the networking platform