Re: passing std::string from visual studio 2005 to an C++ DLL generated by VC 6.0

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Oct 16, 6:29 pm, "Ben Voigt [C++ MVP]" <r...@xxxxxxxxxxxxx> wrote:


Well, exposing a pure interface also gives binary compatibility while
preserving OO style. But those are essentially the three options for
reusable C++ libraries.

Except that the pure interface cannot use library objects in it's
definition (eg, you can't have a method that take a std::string as
parameter in your pure interface). This makes this approach not very
much better that a C-style interface, because you'are doomed to define
all types used in the interface - or use "compatible" types like the
ugly BSTR and it's awfull API.

Arnaud


.