Hi Urs Vogel,
> Hi
>
> What's sthe best approach to convert char[] or char* strings to a BSTR
> and vice versa? I would like to omit OLE2A macros and allocate the
> memory myself, or is the the only way? Any hints?
If you want to do it by hand, then you can use:
See: WideCharToMultiByte
http://msdn.microsoft.com/library/en-us/intl/unicode_2bj9.asp
(which is also internally use by any other method)

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Jochen Kalmbach - 19 Mar 2005 19:12 GMT
Hi Jochen Kalmbach,
> Hi Urs Vogel,
>
[quoted text clipped - 10 lines]
>
> (which is also internally use by any other method)
Oh sorry... this was the wrong direction...
Please use: MultiByteToWideChar
http://msdn.microsoft.com/library/en-us/intl/unicode_17si.asp

Signature
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/