>I get the following error: "OLE error code 0x80040154. Class not registered. Ole object is being ignored"
>I tried to register the class VFXOFFICE.VCX with REGSVR32 and that did not work.
>How can I register this class.
>
>Many thanks
>Raymond
Raymond,
It may sound silly, but why do you want to register a .vcx file in the Register?
I usualy just load the class library in my project with
Set Classlibrary to VFXOffice.vcx
in fact I have following procedure:
Set Classlib To
setclasslib("calendar")
setclasslib("errorslog")
setclasslib("foxcharts")
Procedure setclasslib
Parameters tcClass
Local lToSet
lToSet = .F.
Do Case
Case Vartype(m.tcClass) = 'L'
lToSet = .F.
Case Empty(Set('classlib'))
lToSet = .T.
Case Atc(m.tcClass, Set('classlib')) = 0
lToSet = .T.
Endcase
If m.lToSet = .T.
lcClass = Upper(Alltrim(m.tcClass))+".VCX"
Set Classlib To (m.lcClass) Additive
Else
Return .F.
Endif
Return
Would that not work in your case?
Regards,
Koen