Talk:Declspec
Hello,
Can we add __declspec(delphirecord) to the list of __declspec's supported by C++Builder? Here's some information:
__declspec(delphirecord) instructs the C++ compiler that the struct it's applied to was declared in Delphi code. Normally you would not use this __declspec directly. It's used in .hpp files generated by the Delphi compiler when compiling Delphi units for C++ consumption. However, if you have applied the $EXTERNALSYM directive to a Record declared in Delphi and you wish to provide the definition of the record explicitly, you may use the __declspec(delphirecord).
Cheers,
Bruneau