Solved

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

Posted on 2004-08-19
6
1,212 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
Comment Utility
if (0 == wcslen)
   // it is empty
0
 
LVL 13

Accepted Solution

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

or course.
0
 

Author Comment

by:DAE
Comment Utility
Thanks SteH.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

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

Expert Comment

by:SteH
Comment Utility
wcscpy (image, L""); // or _T("")
0
 

Author Comment

by:DAE
Comment Utility
THX
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

12 Experts available now in Live!

Get 1:1 Help Now