Hello Matt,
Is there any sample code for COM servers , in any XE version,
preferably which includes methods, properties, and BSTR and other
Automation types?
Probably not, especially since C++Builder switched from ATL to DAX a few
versions back.
Is there something in particular you are looking for?
I would like to check that my object correctly handles the allocation
and deallocation of BSTR, SAFEARRAY, and correctly implements [in/out]
and [out] parameters, and properties, and VARIANT_BOOLs and so on.
You can show the code you are concerned about and someone will tell you if
it is OK or not.
So far I have done it by guessing , finding what doesn't crash and
what doesn't
Sounds like you have not really learned the fundamental language-independant
rules of COM programming yet. For example:
Managing Memory Allocation
http://msdn.microsoft.com/en-us/library/windows/desktop/ms688453.aspx
Every COM-capable programming language has to conform to the same rules,
regardless of what coding syntax they use to achieve that.
--
Remy Lebeau (TeamB)
Connect with Us