Solved

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

Posted on 2004-08-19
6
1,241 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
conditional code and condition difference 9 83
fix34  challenge 9 121
Way to decrease size of apk file 9 70
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

810 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