Web Development with Visual FoxPro
Creating Type Library and Registering COM Component problem on the Windows 10
Gravatar is a globally recognized avatar based on your email address. Creating Type Library and Registering COM Component problem on the Windows 10
  ViStWC2016
  All
  May 23, 2016 @ 07:20pm

Hi Rick,

After update my computer with Windows 7 to Windows 10 no longer works compiling web connection applications. The same problem is with the Web Connection 5.58 and Web Connection 6.0.

At the end of the compiling process of Web Connection EXE prompt appears "Creating Type Library and Registering COM Component ' and VFP 9.0 is blocked.

In Web Connection 6.0 first compiling the project goes well and everything works but recompilation is not possible and there is a specified error.

I would be grateful for any suggestion.

Greeting, Stjepan

Gravatar is a globally recognized avatar based on your email address. re: Creating Type Library and Registering COM Component problem on the Windows 10
  Rick Strahl
  ViStWC2016
  May 24, 2016 @ 08:24am

You need to run as an administrator. Use Run As Administrator when you launch FoxPro from a shortcut.

Registering a COM component writes to HKLM in the registry which is only allowed with an admin account.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Creating Type Library and Registering COM Component problem on the Windows 10
  ViStWC2016
  Rick Strahl
  May 24, 2016 @ 10:35am

Rick,

Thank you very much for the prompt response. It was not a problem at the start of my shortcuts such as administrator. This option was included. The problem was that the shortcut was included Compatibility mode. When Compatibility mode is turned off everything works.

Greeting, Stjepan

Gravatar is a globally recognized avatar based on your email address. re: Creating Type Library and Registering COM Component problem on the Windows 10
  Rick Strahl
  ViStWC2016
  May 24, 2016 @ 10:52am

What OS is this?

If you're running Windows Vista or later with with User Account Control (UAC) enabled (which it is by default) the account you run under will not be an Administrator account, even if it shows that it's in the Administrators group. If that's the case you can't write to HKLM keys in the registry which includes registration of COM objects.

If it works for you, you either have UAC policy disabled or are otherwise elevating to a true admin account on your machine. Or you're on XP running with an Admin account.

If you're running PRG files you should be able to:

compile wwFtp

And if you see no errors when SET NOTIFY ON then the flag should be in place.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Creating Type Library and Registering COM Component problem on the Windows 10
  RH
  Rick Strahl
  Apr 17, 2024 @ 04:28am

Hi Rick. I am having the same problem with build hanging on "Creating Type Library and Registering COM Component". Then the build just fails. Any other suggestions?

Gravatar is a globally recognized avatar based on your email address. re: Creating Type Library and Registering COM Component problem on the Windows 10
  Rick Strahl
  RH
  Apr 17, 2024 @ 12:39pm

In order to register COM objects you need to run as Administrator.

There's a hack you can use to avoid this while developing but you won't be able to create the COM object! So make sure you remove when ready to deploy your application.

Here's how you can toggle between COM compilation modes:

At the top of your YourAppMain.prg (here it's wcDemoMain.prg and a wcDemoServer class):

#DEFINE NO_OLEPUBLIC .T.   && or .F.

Then recompile your project or main program.

#IF NO_OLEPUBLIC
    DEFINE CLASS wcDemoServer AS WWC_SERVER 
#ELSE
    DEFINE CLASS wcDemoServer as WWC_SERVER OLEPUBLIC     
#ENDIF

Recompile your project...

New Web Connection 7.0 projects include this logic with the #DEFINE and conditional block in the default template, but you can add that to any old project as well...

+++ Rick ---

© 1996-2024