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 

create new component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Installation
View previous topic :: View next topic  
Author Message
Lukasz Borkowski
Guest





PostPosted: Wed Oct 25, 2006 10:53 pm    Post subject: create new component Reply with quote



I build my new component and i have problem with register it!
I have to register but compiler write error:
e2303 type name expected
e2141 declaration syntax error
e2139 declaration missing ;
the error is in line " TComponentClass classes[1] = {__classid(TComPort)}; "

namespace ComPort
{
void __fastcall PACKAGE Register()
{
TComponentClass classes[1] = {__classid(TComPort)};
RegisterComponents("Samples", classes, 0);
}
}

WHAT IS WRONG??
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Installation 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.