DOSCLIP.C contains a set of 'C' wrapper functions for the 
DOS INT 2FH interface to Windows' Clipboard, as documented 
in Microsoft's Knowledge Base article Q67675 - "Access to 
the Windows Clipboard by DOS Applications".

Instead of using disk files, I was looking for a quicker way 
of communicating between my DOS and Windows apps, when I 
chanced across the above MSKB article, which describe the 
the DOS access interface to the Windows' Clipboard under the 
enchanced mode. I would recommend you read that article 
before using DOSCLIP.C.

So far DOSCLIP has worked a treat for me, but I'll have to 
admit I've only ever used it with the CF_TEXT data format, 
and the DOS LARGE model. I have tested the other formats as 
yet. 

I have complied the files with both Visual C++ 1.5 and 
Borland C++ 3.1, and haven't come across any problems, but 
feel free to share your experiences with me.

A test/demonstration program TESTCLIP.C is provided. To use 
it just compile it and DOSCLIP.C for the DOS LARGE model and 
link them together. Then copy some text onto the Windows' 
Clipboard, and execute the TESTCLIP program.

TESTCLIP first copies the text from the Clipboard into its 
buffer and outputs it to the screen. Then it prompts for a 
string to be entered. Once done, it copies the string to the 
Clipboard and exits.

You are free to use the source code in any way you wish and 
distribute it in any form you wish but a mention in this 
direction would be nice.

Regards.

I H Ting
19th September 1994

Compuserve ID  : 100023,3363
Internet Email : cm1826@wlv.ac.uk
