Hi Basic4PPC Forum,
Just purchased,joined and not a .net programmer so sorry if this is a Noob question...been 10 years since Visual Studio 6 so very rusty
Trying to access real time PCM data from the Microphone...with no .net support have tried unmanaged(I think this is what you call it?) using Delcare type calls to winmm.dll eg Declare Function waveInOpen Lib "winmm.dll" Alias "waveInOpen" (ByRef...blah,blah...
All fine,receiving values,etc except accessing the buffer which holds the received data - it's returned as a pointer and not as a value?
To the best of my knowledge Pointers arn't supported in any form of VB but I could be wrong...I do remember a few .dlls which worked around this in VB6 but no idea in VB.net...
My question - how do I get the VALUE of the pointer? eg I receive back 20518416 as the value of the pointer,how do I convert to a Integer16 or whatever format I've requested?
Further background - Writting this code in #develop (vb.net) and would like to share once complete as a .dll for the whole community...hmmm...after I've got my prject completed and the bloody thing works
Many thanks...
LittlePIC
Just purchased,joined and not a .net programmer so sorry if this is a Noob question...been 10 years since Visual Studio 6 so very rusty
Trying to access real time PCM data from the Microphone...with no .net support have tried unmanaged(I think this is what you call it?) using Delcare type calls to winmm.dll eg Declare Function waveInOpen Lib "winmm.dll" Alias "waveInOpen" (ByRef...blah,blah...
All fine,receiving values,etc except accessing the buffer which holds the received data - it's returned as a pointer and not as a value?
To the best of my knowledge Pointers arn't supported in any form of VB but I could be wrong...I do remember a few .dlls which worked around this in VB6 but no idea in VB.net...
My question - how do I get the VALUE of the pointer? eg I receive back 20518416 as the value of the pointer,how do I convert to a Integer16 or whatever format I've requested?
Further background - Writting this code in #develop (vb.net) and would like to share once complete as a .dll for the whole community...hmmm...after I've got my prject completed and the bloody thing works
Many thanks...
LittlePIC