BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What causes 'Class Txxxx not found' at runtime?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
David Perkins
Guest





PostPosted: Wed May 10, 2006 11:14 am    Post subject: What causes 'Class Txxxx not found' at runtime? Reply with quote



I'm using a some third-party Delphi components and can happily
manipulate their properties/events at design time. The app compiles OK.

At run time, when a form is created I get an error 'Class
T3rdPartyClassName not found'.

The project search path lists dirs containing the components bpi/bpl/lib
files. The form in question uses #pragma link "component". Runtime
packages are not used. Other components from the same bpl/lib are used
and actually create an instance of the form in question.

The components contain separate runtime and design time packages, all of
which are present.

Using BCB2006, update2

Any ideas?
Back to top
Clayton Arends
Guest





PostPosted: Wed May 10, 2006 8:14 pm    Post subject: Re: What causes 'Class Txxxx not found' at runtime? Reply with quote



Long shot question: did you make the name of the component blank? For an
example of this in action create a new application, add a TBevel to the
form, remove the name, and run.

- Clayton
Back to top
Craig Farrell
Guest





PostPosted: Wed May 10, 2006 9:14 pm    Post subject: Re: What causes 'Class Txxxx not found' at runtime? Reply with quote



Hi,

Maybe some kind of 'published' issue? i.e. if it works
just fine in a Delphi app, then maybe one of the published
property types in only 'available' (installed) in Delphi?
e.g. Delphi and C++ use different samples like TSpinEdit.

--Craig
Back to top
DavidPerkins
Guest





PostPosted: Thu May 11, 2006 1:14 am    Post subject: Re: What causes 'Class Txxxx not found' at runtime? Reply with quote

Quote:
Long shot question: did you make the name of the component blank? For an
example of this in action create a new application, add a TBevel to the
form, remove the name, and run.

It definitely has a name.
Back to top
JD
Guest





PostPosted: Thu May 11, 2006 2:14 pm    Post subject: Re: What causes 'Class Txxxx not found' at runtime? Reply with quote

David Perkins <please@no-spam.com> wrote:
Quote:

[...] I get an error 'Class T3rdPartyClassName not found'.
The project search path lists dirs containing the components
bpi/bpl/lib files. [...]

I've seen this error a couple of times and the error message
*was not* related to the actual problem. Exactly what the
actual problem was, I can't recall but it was definately an
issue with my code.

I suggest that you start a new application and drop the
component on the form and compile. That should confirm
that it's not the component (or if it is).

~ JD
Back to top
David Perkins
Guest





PostPosted: Thu May 11, 2006 3:14 pm    Post subject: Re: What causes 'Class Txxxx not found' at runtime? Reply with quote

Quote:
[...] I get an error 'Class T3rdPartyClassName not found'.
The project search path lists dirs containing the components
bpi/bpl/lib files. [...]

I've seen this error a couple of times and the error message
*was not* related to the actual problem. Exactly what the
actual problem was, I can't recall but it was definately an
issue with my code.

I suggest that you start a new application and drop the
component on the form and compile. That should confirm
that it's not the component (or if it is).

I found the error. Somehow the component declarations in the header
file had vanished. The components were still on the form and I could
happily set their properties etc, but when the form was dynamically
created at runtime it went bang.

Another one to add to the knowledge base.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.