Re:WideStrings and BSTR broken in BCB4 COM? Help?
Quote
aphrael wrote in message <36FA6B2E.27E9D...@burble.org>...
>> Test case: Just start a new app, add an ActiveX automation object, make
sure
>> the project defines UNICODE, save it, compile it. It fails to build.
What???
>Whoops. Looks like we didn't test for that.
>I've entered this as a bug, and we'll try to get it fixed ASAP.
I'm very glad you entered it as a bug, but I can't help but wonder how you
*did* test if the most basic COM objects cannot be built.
This is getting me worried. I have had to manually revert to an older
4.0.5.106 VCL40.BPL since the latest 4.0.5.108 crashes my BCB4 Pro, and now
I'm wondering if any of the COM stuff works.
What do you recommend on this COM object stuff, I've got work to get done.
Not use UNICODE??? How can I get a fix ASAP, as troubleshooting the BCB4 ATL
source stuff is a little beyond me at the moment?
BTW, can you tell me how, in BCB4, one connects to a server's COM events
from the client side? Is there any documentation on that?
Quote
>> Also a VCL control I've written will not port, it keeps complaining
about
>> the linker not finding wsprintfA, no matter whether I define UNICODE or
not.
>> The Pascal code uses Strings, PChars, and calls wsprintf onto a PChar,
and
>> compiles fine under D4. I wonder if this is related.
>A VCL ActiveX control, or a regular control?
>Seems like an entirely different issue to me.
This is a non-ActiveX control, just a standard VCL control that handles
serial ports. The thing I don't understand is that wsprintfA (indeed the
right permutation of wsprintf for the ASCII case), is not found by the BCB4
linker, yet the reference is there OK in the .obj file. Is there some global
widestring setting or problem here?
Quote
>Robert West
>borland.com QA.
Thanks,
Fernand
fraynaudATzdnetmailDOTcom