--- HU HUITING wrote:
> i need help. 
> ...
> 1) 'gDeviceP' is not a struct/union/class member
>     theRowsBytes =
> theWindowHandle->gDeviceP->rowBytes;

"->" is used in C and C++ to reference a structure
member through a pointer.  [ x->y is shorthand for
(*x).y ]  You can use "->" with something that points
to a struct, a union, or a class.  The compiler is
telling you that gDeviceP is not a structure, not a
union, and not a class member.

In order for that line of code to be legal, your code
would have to satisfy all of the following:

A. theWindowHandle is a pointer to a
struct/union/class.
B. gDeviceP is a member of the struct/union/class from
point (A).
C. gDeviceP is a pointer to a struct/union/class.
D. rowBytes is a member of the struct/union/class in
point (C).

Your code must be something different, and I suspect
that you don't really want your code to do that
anyway.  However, you didn't post any more code or say
what you were attempting to do, so I can't really say
what your code should be.

HTH


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to