6 The MLWorks Windows Interface Library

6.6 Type conversion utilities

Conversion functions are provided to allow translation between ML types and C types. This allows values to be passed between the ML functions and the C functions.

For example, a window is implemented as a word type, so to pass a window in an argument as a word type requires the function windowToWord.

To illustrate, the following is an example of how to send a message to get the parent of a window using windowToWord and intToWord:

sendMessage (getParent mywindow, 
             WM_COMMAND,
             WPARAM (intToWord someInt),
             LPARAM (windowToWord mywindow));

windowToWord
messageToWord
intToWord
nullWord
wordToString
wordToInt
wordToSignedInt
hiword
loword
nullWindow
isNullWindow
mainLoop
mainInit
doInput
convertSbValue
convertScValue
newControlId

MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker