Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3F02DD3F.3EAA4D3E@dessent.net> Date: Wed, 02 Jul 2003 06:25:19 -0700 From: Brian Dessent Organization: My own little world... X-Accept-Language: en,en-US MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: example needed pls: `cygpath -c ' References: <3EFE120B DOT 58A0C79E AT dessent DOT net> <20030701040434 DOT GE7604 AT ny-kenton2a-710 DOT buf DOT adelphia DOT net> <3F018740 DOT B28F53DC AT dessent DOT net> <3F018D6C DOT EA1226CA AT dessent DOT net> <3F021C46 DOT C8F4CE31 AT dessent DOT net> <3F02DA32 DOT EAD1FC18 AT dessent DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Brian Dessent wrote: > EmptyClipboard(); > SetClipboardData(CF_TEXT, hglbBuffer); > CloseClipboard(); > > return 0; > } Oops, I left off a call to GlobalFree(hglbBuffer); before exiting. Or maybe not, I'm not sure with this global heap business that you have to use when working with the clipboard... Anybody know if the system frees that clipboard data the next time the clipboard is emptied, or do you have to do it before your program exits? Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/