wchar_t* p==NULL? 
Author Message
 wchar_t* p==NULL?

Is this a legal comparision? seems to lead to
compilation errors, that one may not compare a pointer to a short with
a const int?
--



Tue, 14 Jan 2003 03:00:00 GMT  
 wchar_t* p==NULL?

Quote:

> Is this a legal comparision? seems to lead to
> compilation errors, that one may not compare a pointer to a short with
> a const int?

Your question makes no sense.  Give more information.
--



Wed, 15 Jan 2003 03:00:00 GMT  
 wchar_t* p==NULL?

writes

Quote:
>Is this a legal comparision? seems to lead to
>compilation errors, that one may not compare a pointer to a short with
>a const int?

If you wrote exactly:

wchar_t * p == NULL;

I am not surprised you got errors, comparison operators do not belong in
declarations.

Francis Glassborow      Association of C & C++ Users
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation
--



Wed, 15 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. please help... converting char to string to wchar_t, or manipulating wchar_t directly

2. NULL v null pointer constant

3. Global pointer is null sometimes even when initialized to some non-null value

4. NULL as a null function pointer

5. confused null pointer with null pointer constant

6. Null DateTime and Null int

7. Null Pointer Assignment and (null)

8. CreateNewFrame(NULL,NULL)

9. MFC ODBC NULL/NOT NULL

10. (foo == (foo_t *)NULL) vs. ((void *)foo == NULL)

11. Null pointer cast to far is not null

12. memcpy( NULL, NULL 0 ) - safe or not?

 

 
Powered by phpBB® Forum Software