Ole Drag Target 101

<download>

My emphasis in this app was simplicity rather than extensibility. I've included both the executable and the file project for the Ole drop target. The project is in VC 5.0 . I didn't have ready access to CodeWarriors Windows' compiler, but the only thing specific to VC 5.0 is the resource file which contains a pointer to the icon and to the appname. (i.e., the .rc file should be text readable).

main.cpp: creates the window, does message handling, creates and destroys a dropInitializer

OleDropInit: initializes Ole, registers the window, and creates a DropTarget.

DropTarg: inherits from IDropTarget and handles the iUnknown and the iDropTarget methods.

Things that could be added:

This code is provided as is. The author is not responsible even if it starts asking you to play a game and subsequently starts World War III.

<back to Main Page>