Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generated header files are now wrong after SP2

1 view
Skip to first unread message

Relaxin

unread,
Apr 23, 2006, 8:19:07 PM4/23/06
to

BDS2006 is now generating header files (from my Pascal source) with the
wrong parameters.

Before SP2 it generated the functions used with properties like this.

virtual int __fastcall GetBlockSize();
__property int BlockSize = {read=GetBlockSize};

Everything compiled fine withour SP1.


After SP2 it now generates them like this:

virtual int __fastcall GetBlockSize(TMetaClass* vmt);
__property int BlockSize = {read=GetBlockSize};

And I now get the following error:
[C++ Error] Mycpptest.hpp(274): E2347 Parameter mismatch in read access
specifier of property BlockSize

This is just 1 example, I have 75 errors now because it this where before I
had none.

Is this a new bug introduced with SP2?
Actual it look like its this bug all over again:
http://qc.borland.com/wc/qcmain.aspx?d=1857

How do I fix this?

Thanks


Jean-Marie Babet

unread,
Apr 24, 2006, 1:58:10 PM4/24/06
to
Hello Relaxin,

I remember some work going on in this area: I suspect the Pascal method is a
class method, right? We had some problems with mangling between C++ and
Delphi which would result in linker errors for virtual class methods
['NewInstance' is a typical example of such methods]. A fix was introduced
that remedied the linker errors. I suspect this is the change that's
affecting you.

Would it be possible for you to post a snippet of the code involved? I'd
like to see the Pascal code and the C++ code that utilizes the method. The
person who works on that area of DCC32 is just down the hall :). And he's
very open to being ping'ed.

Cheers,

Bruneau.

Jean-Marie Babet

unread,
Apr 24, 2006, 1:59:24 PM4/24/06
to
Oops! I just saw your next post: It seems that you posted the sample
already. I'll investigate this issue this afternoon.

More to come...

Bruneau.


Relaxin

unread,
Apr 25, 2006, 7:16:48 AM4/25/06
to
Thank you!!

"Jean-Marie Babet" <brun...@sbcglobal.net> wrote in message
news:444d11f9$1...@newsgroups.borland.com...

0 new messages