Johy
Johy

Reputation: 303

Is it possible to pass char* between COM objects

I need to modify application that is written on Delphi and C++ and uses COM. And I've seen quite often that COM wrappers always use WideString and BSTR, even though in the end dll that is used works with plain char*. So it's impossible to communicate between COM objects without unicode strings? Some links for further reading on the topic is very appreciated.

Upvotes: 1

Views: 146

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 598434

To pass around an 8-bit char string in COM, you can either:

Upvotes: 5

Related Questions