Hello,
> http://www.codeprojetc.com/string/CPPStringGuide2.asp
>
> It should help with conversion between different kinds of strings.
In fact I have a function call declaration like:
long Acu2XML(LPCSTR szXMLFile, LPCSTR szFilterValue, LPCSTR szAttributeName,
LPCSTR szAttributeValue, LPCSTR szDelimiter, LPCSTR m_szElementContent)
where they are all LPCSTR variabiles where the last one (m_szElementContent)
is the returning one...
Here, since the MXXMLWriter's function get_output works with VARIANT
variabiles I try to initialize
a variant variable:
::VariantInit(&cvoutput);
then I work with this one getting the output from MXXMLWriter then as
standard dotnet specifications for variant variables,
I can use cvoutput.bstrVal to obtain a BSTR output which it is similar to
LPCSTR, which is a wchar_t*, as far as I know...
But passing it directly obviously it doesn't compile... in this case what I
should do?
Thanks.
Ciao
Luigi