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
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.
More to come...
Bruneau.
"Jean-Marie Babet" <brun...@sbcglobal.net> wrote in message
news:444d11f9$1...@newsgroups.borland.com...