PRODUCT : Borland C++ NUMBER : 1016 VERSION : 3.1 OS : WIN DATE : October 19, 1993 PAGE : 1/2 TITLE : An overview of Object Linking and Embedding OLE is an exciting new addition to Windows 3.1. OLE stands for Object Linking and Embedding. Borland C++ 3.1 supports the development of applications that can use the new OLE features of Windows. The online documentation for BCW has a lengthy description of OLE concepts and implementation details. Search on 'OLE' and take a look at the 'OLE function groups', 'OLE functions (3.1)' and 'OLE Overview' topics. The OLE overview is suggested reading for any OLE developer. Example OLE applications can be found in the following directories of Borland C++ v3.1: - BORLANDC\EXAMPLES\WIN31\CLIOLE - BORLANDC\OWL\EXAMPL31\OLESRVR - BORLANDC\OWL\EXAMPL31\OLECLNT OLE uses the clipboard and DDE to communicate between OLE objects, the OLE objects' servers, and OLE client applications. One can use DDE ( or the new DDEML implementation of DDE) to handle OLE processing but it would be wiser to use the OLE API interface, in case the internal DDE details of OLE changes in the future. OLE clients and OLE servers use a call back function to facilitate the communications necessary for OLE. These call back functions are similar to other call back functions, such as the familiar window procedures. Because of implied and expected 'this' pointer, a C++ class member function cannot be used as an OLE call back function, unless it is a static member function, because Windows will not pass a 'this' pointer when calling the call back function. To see OLE in action run the WRITE.EXE program that ships with Windows 3.1. It is typically found in the Accesories folder. Use the Edit|Insert Object menu option to create an OLE object that uses Paintbrush as an OLE server. After drawing something in Paintbrush, exit and you should get a dialog box asking if you want to embed this object. Choose Yes. When Write comes back into focus your drawing should appear in the WRITE document. This drawing is embedded in Write as an OLE object. Double click PRODUCT : Borland C++ NUMBER : 1016 VERSION : 3.1 OS : WIN DATE : October 19, 1993 PAGE : 2/2 TITLE : An overview of Object Linking and Embedding on the image and Paintbrush will run, with your image in the editor. Notice that Paintbrush will be invoked even if it is not currently active on the desktop. This is one difference between OLE from DDE. DDE requires that the DDE server be active on the desktop. OLE objects can invoke their servers if necessary. The files BORLANDC\REDIST\OLECLI.DLL and BORLANDC\REDIST\OLESVR.DLL are used to implement OLE in Windows. The BORLANDC\README file and the nononsense license agreement describe the legal issues involved in the redistribution (with your applications) of those .DLL's. DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.