How to: Retrieve Text from the Clipboard (C++/CLI)

The following code example uses the GetDataObject member function to return a pointer to the IDataObject interface. This interface can then be queried for the format of the data and used to retrieve the actual data.