Paul
2005-07-18 01:16:32 UTC
This seems a never ending saga. Works for 10 fails on 1.
Vfp 6SP5 Windows Server2003
MSComctl.ocx has the "ProgressBar control" registered as
"MSComCtlLib.ProgCtrl.2" I want to use the progress bar on a form.
The control is in the windows\system32 directory
I have registered the control with "regsvr32
c:\windows\system32\mscomctl.ocx" registration completed successfully
I am using the control as follows (some code removed for clarity):
Define CLASS trackevent AS form
Procedure Init
This.AddObject('statusindicator', 'barometer')
WITH This.statusindicator
.Top = 62
.Left = 6
.Height = 16
.Width = 364
.Visible = .T.
ENDWITH
endproc
Enddefine
* Required to by-pass the "class is not registered for use" error
DEFINE CLASS barometer AS OleControl
OleClass = "MSComctlLib.ProgCtrl.2"
enddefine
I get the "Class is not licensed for use" when I attempt to add the control
to the form. I have checked in the registry and the control is properly
registered. I have not had this problem before on any other machine.
Help is appreciated.
Vfp 6SP5 Windows Server2003
MSComctl.ocx has the "ProgressBar control" registered as
"MSComCtlLib.ProgCtrl.2" I want to use the progress bar on a form.
The control is in the windows\system32 directory
I have registered the control with "regsvr32
c:\windows\system32\mscomctl.ocx" registration completed successfully
I am using the control as follows (some code removed for clarity):
Define CLASS trackevent AS form
Procedure Init
This.AddObject('statusindicator', 'barometer')
WITH This.statusindicator
.Top = 62
.Left = 6
.Height = 16
.Width = 364
.Visible = .T.
ENDWITH
endproc
Enddefine
* Required to by-pass the "class is not registered for use" error
DEFINE CLASS barometer AS OleControl
OleClass = "MSComctlLib.ProgCtrl.2"
enddefine
I get the "Class is not licensed for use" when I attempt to add the control
to the form. I have checked in the registry and the control is properly
registered. I have not had this problem before on any other machine.
Help is appreciated.