Click here to Skip to main content
15,885,435 members
Articles / Programming Languages / C++

IPCWorkshop

Rate me:
Please Sign up or sign in to vote.
4.91/5 (43 votes)
29 Jan 20037 min read 156.6K   4.5K   93  
This article describes a data transfer over various IPC mechansisms
//////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                            
// IPCWorkshop							                                      
//                                                                            
// Environment:     Visual C++ 6.0, Windows 2000                              
//                                                                            
// Notes:	Class CClipboard. This class provides an encapulation of		  
//			clipboard, which is a set of functions and messages that enable 
//			applications to transfer data. Because all applications have 
//			access to the clipboard, data can be easily	transferred between 
//			applications or within an application.		  
//			Widely used for Cut & Paste and Drag & Drop operations			  
//                                                                            
//////////////////////////////////////////////////////////////////////////////////////////////////

#ifndef __CLIPBOARD_H__
#define __CLIPBOARD_H__

class CClipboard
{
public:
	CClipboard();
	~CClipboard();
	
	//Operations
	bool Open();
	bool Close();
	bool Empty();
	void Register(LPCTSTR);
	bool Write(char*, int);
	bool Read(char*&, int);

private:
	static CLIPFORMAT NEAR m_cfPrivate;
};

#endif //__CLIPBOARD_H__ 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Iam a software developer from Chennai, India. I've been working mainly under windows environment.I am attracted to various programming languages including : C/C++, Python. I've been programming VC++/MFC, ATL/COM, Lex & Yacc and database design/development ( SQL/Oracle ) for the past two years.



Comments and Discussions