What is OLE? How do you handle drag and drop in OLE? What are the differences between MFC Exception macros and C++ exception keywords?What is OLE? How do you handle drag and drop in OLE?
OLE is meant for Object Linking and Embedding. It is a way of handling compound documents (Single document which can store data in multiple formats—such as text, graphics, video, and sound). It is an object oriented paradigm. It incorporates many services of OOP- encapsulation, polymorphism, and an object-based architecture.
Drag-and-drop feature of OLE is primarily same as copy and paste feature through which data can be transferred from one place to another. When you use the Clipboard to copy or paste data, a number of steps are required. OLE drag and drop is much more general. It allows user to drag and drop any data that could also be placed on the Clipboard. The processes are reduced in this as you select the source window (drop source), drag it to the desired destination (drop target) and drop it by releasing the mouse. It eliminates the needs of menus and only requires the source and target must be open at the time of drag and drop.
What are the differences between MFC Exception macros and C++ exception keywords?
MFC Exception macro automatically deletes a caught exception when the object goes out of the scope whereas the code using C++ exception keywords does not, as user has to explicitly mention the function to delete and catch the exception.
MFC exception macros automatically see the out of scope objects and solve the problem whereas in C++ exception keyword we have to mention a function which contains the code to catch the out of scope objects.
|