Board index » cppbuilder » __property Not an allowed type (AsyncPro)

__property Not an allowed type (AsyncPro)


2006-08-26 12:45:09 AM
cppbuilder11
I'm trying to get AsyncPro to work under BDS2006/C++. After several
hours I've managed to get the components installed ok but the new
compiler doesn't seem to like it's own generated hpp file - it's
throwing up "E2109 Not an allowed type" for untyped __property's e.g:
class DELPHICLASS TApdCustomComPort;
class PASCALIMPLEMENTATION TApdCustomComPort : public
Oomisc::TApdBaseComponent
{
...
protected:
__property Oomisc::TPassString TraceName = {read=FTraceName,
write=FTraceName};
...
}
class DELPHICLASS TApdComPort;
class PASCALIMPLEMENTATION TApdComPort : public TApdCustomComPort
{
...
__published:
__property TraceName ;
}
It seems this mechanism is used to publish a protected property. Is
this a problem with the TPassString template? Or a change in the way
that the untyped _property is handled?
TIA,
Mark
 
 

Re:__property Not an allowed type (AsyncPro)

Mark wrote:
Quote
I'm trying to get AsyncPro to work under BDS2006/C++. After several
hours I've managed to get the components installed ok but the new
compiler doesn't seem to like it's own generated hpp file - it's
throwing up "E2109 Not an allowed type" for untyped __property's e.g:

I am basically having similar problem. I have Internet Component Suite
(ICS) and AsyncPro 4.07 added to BDS/C++. ICS works fine, but the
AsyncPro not. Problem is exactly the same as that "Not an allowed
type" you mentioned.
Hope anyone that have experience can kindly advise.
Many thanks,
Patrick