NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2643

illegal cast from pointer to member

A pointer to a member of a class, structure, or union is cast to a different type.

Example

class C
{
public:
   int i;
   operator int*() { return &i; }
};
int C::* cpi = (int*)&C::i; // error
int C::* cpi2 = &C::i;      // OK