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 

upgrading to BCB6 and can't use any of my old components

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





PostPosted: Mon Dec 15, 2003 11:18 pm    Post subject: upgrading to BCB6 and can't use any of my old components Reply with quote



i just got the eval version of BCB6.
i can't get it to take any of my old components, 'help' is a little
light on info. i'm getting a bunch of error messages about conflicts
with base classes ( in particular click() and mouseover() ).

just how different is this version? and were do i look for the fix?

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Dec 15, 2003 11:30 pm    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote




"James Connell" <jconnell (AT) gci (DOT) net> wrote

Quote:
i just got the eval version of BCB6.
i can't get it to take any of my old components

Which components are you referring to exactly? Native components?
Components you wrote yourself? Third-party components? Please be more
specific.

Quote:
i'm getting a bunch of error messages about conflicts with
base classes ( in particular click() and mouseover() ).

Please elaborate. What are the EXACT error messages, and what EXACT lines
are they occuring on?


Gambit



Back to top
James Connell
Guest





PostPosted: Tue Dec 16, 2003 4:49 am    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote



Remy Lebeau (TeamB) wrote:
Quote:
"James Connell" <jconnell (AT) gci (DOT) net> wrote in message
news:3fde4177$1 (AT) newsgroups (DOT) borland.com...

i just got the eval version of BCB6.
i can't get it to take any of my old components


Which components are you referring to exactly? Native components?
Components you wrote yourself? Third-party components? Please be more
specific.


i'm getting a bunch of error messages about conflicts with
base classes ( in particular click() and mouseover() ).


Please elaborate. What are the EXACT error messages, and what EXACT lines
are they occuring on?


Gambit



ok i've been hacking at this and i've got 3 of my components installed (
well actualy 1 that i wrote - 2 are third party ) the only one that
appears in the pallet is the one written in pascal ( a language BTW i
don't know worth a darn). i can't find any of the C++ coded ones ( one
is by Howe so it should be right).

i've tried useing both 1 and individual packages for each to no availe -
i get a " xxx package installed" message but it doesn't give me a
component installed except for the pascal one that shows up.

can you give me a pointer or two, please???

all these work fine with my older version of BCB, and they match the
examples in the help.

i wanted to check out BCB6 on a program i've been tinkering with for a
while and as it is already written it uses the components i've been
useing for years and like - i really didn't want to rebuild it from scratch.



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Dec 16, 2003 5:17 am    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote


"James Connell" <jconnell (AT) gci (DOT) net> wrote


Quote:
i've tried useing both 1 and individual packages for each to no availe -
i get a " xxx package installed" message but it doesn't give me a
component installed except for the pascal one that shows up.

Unless the message actually specified *by name* the specific components that
were actually installed, then most likely the packages did not call
RegisterComponents() at all. How *EXACTLY* did you make the packages?


Gambit



Back to top
James Connell
Guest





PostPosted: Tue Dec 16, 2003 6:53 am    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote

Remy Lebeau (TeamB) wrote:
Quote:
"James Connell" <jconnell (AT) gci (DOT) net> wrote in message
news:3fde8f0c$1 (AT) newsgroups (DOT) borland.com...


i've tried useing both 1 and individual packages for each to no availe -
i get a " xxx package installed" message but it doesn't give me a
component installed except for the pascal one that shows up.


Unless the message actually specified *by name* the specific components that
were actually installed, then most likely the packages did not call
RegisterComponents() at all. How *EXACTLY* did you make the packages?


Gambit



i hope i get this right i tried a lot of different ways

Component -> Install Component -> Into new package

Package file name = "xxxxx"
Unit file name -> browse = <select mycomponent.pas> open
<OK>

message == package xxxxx.bpl will be built than installed. continue?
<YES>

package <path>xxxxxx.bpl has been installed.
<OK>

close code window an expose small "package" window
click requires
add required ???.bpi

select source file and click compile

pops up done message <OK>
click 'install'

"information" == package <path>xxxxx.bpl has been installed.

the only package that reports a component installed is the pascal one.

samples of "register()" follow:

pascal code of the one that loads

procedure Register;
begin
RegisterComponents('Custom', [TFileLabel]);
end;


my components func()

namespace GraphicButton
{
void __fastcall Register()
{
TComponentClass classes[1] = {__classid(GraphicButton)};
RegisterComponents("JConn", classes, 0);
}
}

and the one of Howe's that doesn't load either
namespace Xgauge
{
void __fastcall /*PACKAGE*/ Register()
{
TComponentClass classes[1] = {__classid(TxGauge)};
RegisterComponents("Howe", classes, 0);
}
}


Back to top
James Connell
Guest





PostPosted: Tue Dec 16, 2003 7:22 am    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote

OK i got Howe's to load but mine still errors out:

[Linker Error] Export __fastcall graphicbutton::Register() in module
D:BORLANDCBUILDER6SOURCECOMPONENTSGRAPHICBUTTONGRAPHICBUTTON.OBJ
references __fastcall Classes::RegisterComponents(const
System::AnsiString, System::TMetaClass * const *, const int) in unit
D:BORLANDCBUILDER6LIBRELEASERTL.BPI|Classes

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Dec 16, 2003 8:30 am    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote


"James Connell" <jconnell (AT) gci (DOT) net> wrote


Quote:
Unit file name -> browse = <select mycomponent.pas> open

Does that file include an exported Register() function that calls
RegisterComponents() internally?

Quote:
package <path>xxxxxx.bpl has been installed.

If that is the entire message, then no components were registered at all.

Quote:
"information" == package <path>xxxxx.bpl has been installed.

See above.

Quote:
the only package that reports a component installed is the pascal one.

Which suggests that your C++ components do not have a correct Register()
function for the IDE to call.

Quote:
my components func()

namespace GraphicButton
{

Is the filename actually named GraphicButton.cpp?

Quote:
TComponentClass classes[1] = {__classid(GraphicButton)};
RegisterComponents("JConn", classes, 0);

Did you really not prefix your component class with 'T'?


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Dec 16, 2003 8:32 am    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote


"James Connell" <jconnell (AT) gci (DOT) net> wrote

Quote:
OK i got Howe's to load but mine still errors out:

At this point, I would suggest you start over from scratch. Go to the
Components menu, choose "New Component", choose the appropriate ancestor,
and press Ok. Migrate your existing code to the new file as needed, and
save the new files. Then try placing the new files, not the original files,
into a new package.


Gambit



Back to top
James Connell
Guest





PostPosted: Tue Dec 16, 2003 3:16 pm    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote

Remy Lebeau (TeamB) wrote:
<snip>
Quote:

TComponentClass classes[1] = {__classid(GraphicButton)};
RegisterComponents("JConn", classes, 0);


Did you really not prefix your component class with 'T'?


Gambit



no, that's a typo the name is TGraphicButton


Back to top
James Connell
Guest





PostPosted: Tue Dec 16, 2003 4:00 pm    Post subject: Re: upgrading to BCB6 and can't use any of my old components Reply with quote

Remy Lebeau (TeamB) wrote:
Quote:
"James Connell" <jconnell (AT) gci (DOT) net> wrote in message
news:3fdeb2f7 (AT) newsgroups (DOT) borland.com...

OK i got Howe's to load but mine still errors out:


At this point, I would suggest you start over from scratch. Go to the
Components menu, choose "New Component", choose the appropriate ancestor,
and press Ok. Migrate your existing code to the new file as needed, and
save the new files. Then try placing the new files, not the original files,
into a new package.


Gambit



i've decided that this is to much pain for now.
if i'm going to get any "evaluating" done i've got to get started on
Something - i have a small project i've been going to do for a while now
- i'll do that instead. although i'm leary about writing code on a
platform i may scrap.

oh BTW thanks the above suggestion did do it but there are still
problems - it didn't take the icon and it still doesn't find the
components on the form ( it asks if i'd like to remove the refences)
oh well i'll figure it out sooner or later.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.