var ReturnValue=CSDCtrlClass.GetMemoryBuffer("BMP", buf);
var buf = new Array(200000); // e.g. global var</b>
THE RETURN VALUE OF THE FUNCTION IS ZERO , WHICH INDICATES THAT THE FUNCTION EXECUTED SUCCESSFULLY. HOWEVER THE FUNCTION HAS 2 ARGUMENTS 1. "BMP" which is an input string and correct! 2. "buf" which is a return object of binary bytes This is the array that is empty all the time. It should be populated a block of binary data representing a bitmap image( approx 154k), after the function is called.
PS when calling this function in c#( windows application) the 'buf' is declared as Object and passed by reference i.e.