char *ptr

 

Use

char * ptr1;
char * ptr2;
size_t bufLen;

bufLen = ptr2 - ptr1;
Do not use
char *ptr1;
char *ptr2;
UINT32 bufLen;

bufLen = ptr2 - ptr1;

 

Parent topic:

Coding considerations on Windows


fg19470_