Hello everyone...
I am trying to make a simple and little DLL wrapper to MSXML4 libraries to
make it being called from an another-platform's application.
While creating the msxml4.tlh file, I figured this inside:
virtual HRESULT __stdcall get_output (
/*[out,retval]*/ VARIANT * varDestination ) = 0;
and I have in my dll source code (it is only one function with the entry
point BOOL __stdcall DllMain(HINSTANCE hModule, DWORD ul_reason_for_call,
LPVOID lpReserved) ) this thing:
LPCSTR szElementContent;
LPCSTR cvoutput;
wcscpy(cvoutput, pSAXWriter->get_output);
wcscpy((wchar_t *)m_szElementContent, cvoutput);
it says I can't convert from const char * (I guess) of get_output method to
LPCSTR or even also wchar_t * as you see:
Acu2XML.cpp(82) : error C2664: 'wcscpy' : cannot convert parameter 1 from
'LPCSTR' to 'wchar_t *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Do you have any idea?
Thanks a lot,
ciao!
Luigi