?
Solved

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

Posted on 2004-08-19
6
Medium Priority
?
1,345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 total points
ID: 11839632
Sorry it should be
if (0 == wcslen (image))
   /// ...

or course.
0
 

Author Comment

by:DAE
ID: 11839658
Thanks SteH.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month13 days, 7 hours left to enroll

800 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