What is OLE? How do you handle drag and drop in OLE?

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.
What is IUnknown? Explain some of commonly used methods provided by IUnknown.
IUnknown is the base interface for every COM class. Through all this COM interfaces are derived. It uses three methods which are as follows:...............
What is the use of message map? Advantages of a message map.
Any system is a message driven system. Every event has to be noted down and stored somewhere like a mouse click or a printer signal sends a message to the running application which in turn handles the.........
Difference between ASSERT and VERIFY.
ASSERT reads and evaluates an expression when the program is in debug mode and it throws an exception if the result is 0 and program terminates whereas VERIFY reads..........
Post your comment