Message
From
13/09/2016 13:41:12
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01640762
Message ID:
01640773
Views:
74
>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:
* SetClassLib
Set Classlib To
setclasslib("calendar")
setclasslib("errorslog")
setclasslib("foxcharts")
**and and

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
Previous
Next
Reply
Map
View