hi

I want to copy data from alternate location of first PBYTE to another PBYTE
EX: From first PBYTE array location 0-2-4-6-7 etc to another Pbyte array please help

PBYTE pBuffer = (PBYTE)LocalAlloc(LMEM_FIXED, DATA_SIZE);
PBYTE pBufferSec = (PBYTE)LocalAlloc(LMEM_FIXED, DATA_SIZE);
short* pbShortBuffer = reinterpret_cast<short*>( pBuffer );
memcpy(pBufferSec,pBuffer,sizeof(pBuffer));// here i dont know how to copy alternate memory location from source file to pBufferSec
short* pbLeftBuffer = reinterpret_cast<short*>( pBufferSec );

Please give some help