网
网络3K
Unregistered / Unconfirmed
GUEST, unregistred user!
以下的代码在DELPHI中我是这样写的:
var
WAllocate: Integer;
WSamples : PSmallint;
分配:
WAllocate:=Round(96000 * 4 * 2 * (200 + 5) / 1000) * 2;
GetMem(WSamples, WAllocate);
释放:
FreeMem(WSamples);
============================
那么在VC++中怎样分配啊!
var
WAllocate: Integer;
WSamples : PSmallint;
分配:
WAllocate:=Round(96000 * 4 * 2 * (200 + 5) / 1000) * 2;
GetMem(WSamples, WAllocate);
释放:
FreeMem(WSamples);
============================
那么在VC++中怎样分配啊!