How do we use the W2A macro?
I have a ATL C++ project, creating a DLL for a windows mobile 5 device.
When I try to compile this code:
#include <atlbase.h>
STDMETHODIMP CISPEncrypt::encrypt(BSTR* data, BSTR* password, BSTR* encData)
{
LPCSTR* x = W2A(data);
it complains with:
'_lpw': undeclared identifier
void func( LPSTR lpsz ){ USES_CONVERSION; ... LPWSTR x = A2W(lpsz) // Do something with x ...}
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?