This chapter provides guidelines to help you add OLE server capabilities to a new or existing application. Adding OLE server capabilities is a relatively simple task, because OLE affects only a few specific parts of your application. You can write the rest of your application first and add OLE-specific functionality at any time.
To implement OLE server capabilities in an application, you must add the following parts to your application:
OLE-specific data structures and callback functions
OLE-specific instance initialization code to start up an application
OLE-specific code to exchange data between client and server applications
OLE-specific code to close a server application
This chapter begins with a discussion of various kinds of OLE servers, continues with the steps needed to create an OLE server, and ends with information on how to temporarily block OLE requests when you don't want to interrupt a specific non-OLE operation.