Help with IntPtr
-
The MS docs for DirectSoundBuffer.WriteBuffer say tht a typical call looks like: dsBuf.WriteBuffer(0, 0, buf(0), CONST_DSBLOCKFLAGS.DSBLOCK_ENTIREBUFFER) where buf(0) is the first element of an array of bytes. However, this fails the .net compiler which says the third parameter must be a System.IntPtr, and that it can't convert a value of type BYTE to a IntPtr. What is happing here? This is for a DirectSound8 app. -Davivd
-
The MS docs for DirectSoundBuffer.WriteBuffer say tht a typical call looks like: dsBuf.WriteBuffer(0, 0, buf(0), CONST_DSBLOCKFLAGS.DSBLOCK_ENTIREBUFFER) where buf(0) is the first element of an array of bytes. However, this fails the .net compiler which says the third parameter must be a System.IntPtr, and that it can't convert a value of type BYTE to a IntPtr. What is happing here? This is for a DirectSound8 app. -Davivd