Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

warning C4047: '=' : 'unsigned int ' differs in levels of indirection from 'void *'

559 views
Skip to first unread message

Jeff Smith

unread,
Nov 24, 2001, 3:32:21 AM11/24/01
to
Hello,

It's just a warning, but can anybody explain to me what this
warning is:

warning C4047: '=' : 'unsigned int ' differs in levels of
indirection from 'void *'

The line of code that is causing it is:

WndClass.style = NULL;

I am compiling with the old version 4 of VC++.

Also, what should WndClass.style be to eliminate this
error ?

Thanks for any information.

Andy Potter

unread,
Nov 24, 2001, 8:22:34 AM11/24/01
to
I suspect this is because NULL is declared as (VOID *)0. As it is meant to
be assigned to pointers.
WndClass.style is an unsigned interger and therefore you should use 0 not
NULL. Having said that are you sure you want it to be zero, usually you need
to set it too CS_VREDRAW | CS_HREDRAW as a minimum.

Andy.


0 new messages