# CreateMsgItem

Creates a message item.

### Synopsis

`Item CreateMsgItem (Item replyPortItemOrZero)`

### Description

Creates a message item. `CreateMsgItem()` calls `CreateItem()` directly with the tag arguments required to create a message item.

### Arguments

`replyPortItemOrZero`
  Reply port to which the message will be sent. If set to zero, the message will not be sent to a specific reply port.

### Return Value

Value
  Error Condition

(The message item)
  None

(Portfolio error code)
  `CreateItem()` failed

See "Error Messages" in the 3DO Portfolio Reference Manual for a listing of error messages returned by `CreateItem()`.

### Associated Files

MsgUtils.h

### See Also

`CreateItem, CreateMsg`