Board index » delphi » Help with "Class not Registered"

Help with "Class not Registered"

I'm having an OLE problem that I've seen referenced in this group, but
I'm still pretty new to D5 and don't understand the answers that I've
seen.

One of the units in my application uses an ActiveX Formula One
workbook.  I populate the cells within my program, and then save to
workbook to disk as an Excel file.  It compiles and runs fine on my
computer.  But when I run the executable on another computer, it fails
to start, and gives an "EOleSysError" message followed by "Class not
Registered".

Running Windows 95 and Office 97 on both computers.  If anyone is
willing to help out a rookie, I'd be grateful.  Thanks.

CC

 

Re:Help with "Class not Registered"


One more thing I forgot to mention.  I don't need to run or manipulate
Excel.  I just want to create a disk file (already populated with data)
that can be read by Excel, so I'm not even sure if I'm pointed in the
right direction here.  Thanks in advance.

CC

Re:Help with "Class not Registered"


You'll need to deploy (install and register) any ActiveX controls you use in
your program. That includes the Formula One OCX.

have fun
--
Binh Ly
http://www.techvanguards.com

Quote
"Curt Chambers" <c...@sprynet.com> wrote in message

news:397B25C3.8E196232@sprynet.com...
Quote
> I'm having an OLE problem that I've seen referenced in this group, but
> I'm still pretty new to D5 and don't understand the answers that I've
> seen.

> One of the units in my application uses an ActiveX Formula One
> workbook.  I populate the cells within my program, and then save to
> workbook to disk as an Excel file.  It compiles and runs fine on my
> computer.  But when I run the executable on another computer, it fails
> to start, and gives an "EOleSysError" message followed by "Class not
> Registered".

> Running Windows 95 and Office 97 on both computers.  If anyone is
> willing to help out a rookie, I'd be grateful.  Thanks.

> CC

Re:Help with "Class not Registered"


Thanks for your reply.  What you said makes sense but how do I install
and register ActiveX controls?  I thought that if they were on the
Delphi component toolbar they were ready to use.

Also, is there an easier way to do what I'm trying to do?  Thanks again.

Curt Chambers

Re:Help with "Class not Registered"


Steps:

1) Take a look at deployment licensing issues for the ActiveX control you
want to deploy (contact the ActiveX control authors)

2) Ask them which files are required to properly deploy the ActiveX control
(usually 1 OCX files + 0 or more supporting files)

3) Include the ActiveX control files in your installation program and mark
them to be automatically registered (Wise or InstallShield can do this for
you). If you have a manually created installation, you can manually register
ActiveX controls using the Delphi provided tregsvr utility.

have fun
--
Binh Ly
http://www.techvanguards.com

Quote
"Curt Chambers" <c...@sprynet.com> wrote in message

news:397DB7CE.EEF99025@sprynet.com...
Quote
> Thanks for your reply.  What you said makes sense but how do I install
> and register ActiveX controls?  I thought that if they were on the
> Delphi component toolbar they were ready to use.

> Also, is there an easier way to do what I'm trying to do?  Thanks again.

> Curt Chambers

Re:Help with "Class not Registered"


Thanks for the info.  I certainly have some stuff to chew on for
awhile.  My situation is #3, in that I just drop the executable onto a
hard drive and run the program.  It's very small and compact.  The only
reason I'm going through all of this is that it creates a disk file that
has to be able to be read by Excel.  Am I approaching this in the right
direction, or is there an easier way?

CC

Other Threads