Solved

How to know if a WCHAR[20] is empty???

Posted on 2004-08-19
6
1,225 Views
Last Modified: 2013-11-20
If i have this:

WCHAR image[20];

How do I know if "image" is empty (blank).???
0
Comment
Question by:DAE
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:SteH
ID: 11839630
if (0 == wcslen)
   // it is empty
0
 
LVL 13

Accepted Solution

by:
SteH earned 50 total points
ID: 11839632
Sorry it should be
if (0 == wcslen (image))
   /// ...

or course.
0
 

Author Comment

by:DAE
ID: 11839658
Thanks SteH.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:DAE
ID: 11839760
And what is the correct way to make empty a WCHAR[x] var?
0
 
LVL 13

Expert Comment

by:SteH
ID: 11840002
wcscpy (image, L""); // or _T("")
0
 

Author Comment

by:DAE
ID: 11840045
THX
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel Use VBA to get user's Mac Address for their computer 5 107
while loop over for loop 7 92
mapBully challenge 6 110
how to split multiple lines delimiter : 8 77
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now