hellhammer
October 27th, 2004, 01:10 AM
I'm attempting to port a DirectSound application I wrote in VC# (.NET 2003) to VC++ (.NET 2003).
I've almost ported the entire code, but I'm stuck on one line, and would really appreciate it if somebody could help me out on this.
The line in C# is:
MemBuffer = (short[])(AppCaptureBuffer.Read(StreamCapBuffReadPos, typeof(short), LockFlag.None, 50000));
MemBuffer was previously declared as:
private short[] MemBuffer;
How would I do this in C++? My problem is with the "typeof" keyword in C#. It signifies the returned data type.
C++ doesn't appear to have the "typeof" keyword. How do I write this in C++?
Thanks!
I've almost ported the entire code, but I'm stuck on one line, and would really appreciate it if somebody could help me out on this.
The line in C# is:
MemBuffer = (short[])(AppCaptureBuffer.Read(StreamCapBuffReadPos, typeof(short), LockFlag.None, 50000));
MemBuffer was previously declared as:
private short[] MemBuffer;
How would I do this in C++? My problem is with the "typeof" keyword in C#. It signifies the returned data type.
C++ doesn't appear to have the "typeof" keyword. How do I write this in C++?
Thanks!