Board index » cppbuilder » Why BSTR but not WideString?
booker
![]() CBuilder Developer |
Why BSTR but not WideString?2003-06-29 11:30:26 AM cppbuilder20 I am learning to write COM object and want to create property of String type, and of course there is no such an AnsiString or WideString in COM,so i create property of BSTR and think that when importing my COM dll, cbuilder will automatically create a wrapper class and convert the BSTR type to WideString. But it didn't. However,i do find some WideString property in the ActiveX Control i have ever imported and used, eg. Windows Media Player 1.0 control. In the wrapper class of it ,all the string property are of type WideString rather than BSTR. So i wonder that how it made it? Thanks in advance. Regards, Booker |