I think you need to use casting - as follows: pBuffer1 = (PBYTE) malloc (INP_BUFFER_SIZE) ; pWaveHdr1->lpData = (LPSTR) pBuffer1 ; pSaveBuffer = (PBYTE) realloc (pSaveBuffer, 1) ; That should solve the compiler errors. Scott
S
slt
@slt
I think you need to use casting - as follows: pBuffer1 = (PBYTE) malloc (INP_BUFFER_SIZE) ; pWaveHdr1->lpData = (LPSTR) pBuffer1 ; pSaveBuffer = (PBYTE) realloc (pSaveBuffer, 1) ; That should solve the compiler errors. Scott