Board index » cppbuilder » Control developped in VC6++ and imported in BCB3

Control developped in VC6++ and imported in BCB3

Hi,
I developped a dispinterface to fire events. I fire events with or without
parameters like:

OnInit(),
OnError(short code, short id) ...

But when I import this control in BCB3, for each event which takes
parameters (like OnError) I've the following errors in the file
MyComponentLib_TLB.h :

__property TVMyComponentClassProxyOnError OnError={ read=FOnError,
write=FOnError };

(C++ error) --> Simple type name expected

Thanks in advance.

 

Re:Control developped in VC6++ and imported in BCB3


Hi,
I developped a dispinterface to fire events. I fire events with or without
parameters like:

OnInit(),
OnError(short code, short id) ...

But when I import this control in BCB3, for each event which takes
parameters (like OnError) I've the following errors in the file
MyComponentLib_TLB.h :

__property TVMyComponentClassProxyOnError OnError={ read=FOnError,
write=FOnError };

(C++ error) --> Simple type name expected

Thanks in advance.

Re:Control developped in VC6++ and imported in BCB3


I think that there is an Event defined, which is named OnError. That
confuses the compiler when you use that name in your sources. This is
just a guess.

Alex

Quote
Gilles Vigney wrote:

[snip]
--
HotSend - portable documents technology
http://www.hotsend.com/
eFax - get your faxes via email - Free !
http://www.efax.com

Other Threads