BMessage myMessage; int64_t myValue = 123456789123456789; myMessage.AddInt64("myKey", myValue);
BMessage myMessage; myMessage.AddInt64("myKey", 123456789123456789); int64_t myValue; myMessage.FindInt64("myKey", &myValue);In this example, a new BMessage object is created and a 64-bit integer value is added to it using the AddInt64 method. The FindInt64 method is then used to retrieve the value from the message using the same key that was used to add the value. The retrieved value is then stored in the myValue variable. The BMessage class is part of the BeOS/Haiku Application Kit library, which provides a number of classes and functions for developing applications on the BeOS/Haiku platforms.