 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Lukasz Borkowski Guest
|
Posted: Wed Oct 25, 2006 10:53 pm Post subject: create new component |
|
|
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 |
|
 |
|
|
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
|
|