Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
I have a LPCWSTR variable called date.
I also have a WCHAR array: WCHAR m_wstrDate[MAX__LENGTH];

I want to convert date into m_wstrDate.

How can I do that?

Thanks
Posted

1 solution

For instance:
C++
wcsncpy(m_wstrDate, date, MAX__LENGTH);


See MSDN[^]
 
Share this answer
 
Comments
Guyverthree 2-Aug-11 10:55am    
I like simple and exact.
CPallini 29-Dec-11 16:09pm    
:-) Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900