Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



MCMemAlloc

See also    


Allocates block of memory of specified size and returns a pointer to this block.

Declaration

[C++]
    void* MCMemAlloc(long Size);

[Pascal]
    function MCMemAlloc(Size : integer) : pointer;

[VB6]
    not applicable;

[ActiveX]
    not applicable;

[C#]
    public static byte[] MCMemAlloc(Size);

[VB.NET]
    Public Shared Function MCMemAlloc(ByVal size As Integer) As Byte()

[Java]
    not applicable, use standard byte array allocation;

[Java ME]
    not applicable, use standard byte array allocation;

[DLL]
    __stdcall void* MCMemAlloc(long Size);

Parameters

  • Size - size of the memory block to be allocated

Return value

    Pointer to the requested block or NULL (nil) if memory allocation failed.

Description

    Use this method to allocate a memory block suitable for use with MCMessage structure.

See also:     MCMessage structure     MCMemFree    

Discuss this help topic in MsgConnect Forum