Answered by:
how to convert char array to LPCTSTR

Question
-
trying to create a directry in WINCE7.0 mounted volume using c++. using Unicode Character Set. code is as follows ...
char
FolderPath[20]="\\Mounted Volume\\PMS48";
LPCTSTR lpPathName = (LPCTSTR)FolderPath;
if(NULL == CreateDirectory(lpPathName,NULL))
{
PMS_LOG(1, (L
"\n CreateDir failed \n"));
}
else
{
PMS_LOG(1, (L
"\n CreateDir success \n"));
}
But folder is creating in "\\" location with junk name.please help me ....- Moved by Ed Price - MSFTMicrosoft employee Friday, June 8, 2012 12:01 AM (From:MSDN, TechNet, and Expression Profile and Recognition System Discussions)
Friday, June 1, 2012 9:58 AM
Answers
-
I'd ask over in a C++ forum:
http://social.msdn.microsoft.com/Forums/en-US/category/visualc
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Naomi N Friday, June 1, 2012 4:22 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, June 17, 2012 11:48 PM
Friday, June 1, 2012 1:31 PM -
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, June 7, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, June 17, 2012 11:48 PM
Thursday, June 7, 2012 11:45 PM
All replies
-
I'd ask over in a C++ forum:
http://social.msdn.microsoft.com/Forums/en-US/category/visualc
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Naomi N Friday, June 1, 2012 4:22 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, June 17, 2012 11:48 PM
Friday, June 1, 2012 1:31 PM -
- Proposed as answer by Ed Price - MSFTMicrosoft employee Thursday, June 7, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, June 17, 2012 11:48 PM
Thursday, June 7, 2012 11:45 PM -