delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/01/18:37:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <nZFGdDAMA1h5IwZi@almide.demon.co.uk>
Date: Tue, 1 Aug 2000 23:32:44 +0100
To: cygwin AT sourceware DOT cygnus DOT com
From: Alexander Anderson <lists AT almide DOT demon DOT co DOT uk>
Subject: Clipboard from Cygwin?
MIME-Version: 1.0
X-Mailer: Turnpike Integrated Version 4.02 U <LwFd4m4NxdqD1GHP5$6f1+q9Hw>

Dear Cygwin list,


    A while back Oliver Nittka sent me the C sourcecode of a Cygwin unix
command to grab the Windows clipboard.  He suggested I  compile  it  and
try  it out.  I would very much prefer not get involved in the headaches
of setting up the ability to actually _compile_ stuff  under  Cygwin  (I
just  want  the  power  of  the Unix tools on Windows, as a command line
user).  I have not been able to get a reply from Nittka recently, he may
be on holiday.


    Could  someone  instead  suggest  where  I  can  download this (or a
similar)  command,  pre-compiled?   Also,  how  does  one  use  Nittka's
'probe'?  Would it be for example,


        $ probe > clipboard.txt ?


With kind regards,


Sandy


P.S.  The source he originally sent:

------------------------------------------------------------- probe.c --
#include <stdio.h>
#include <windows.h>

int main() {
    HGLOBAL hglb; 
    LPSTR lpstr; 

    OpenClipboard(0);
    hglb = GetClipboardData(CF_TEXT); 
    lpstr = GlobalLock(hglb); 
 
    printf("%s",lpstr);
    GlobalUnlock(hglb); 
    CloseClipboard();
    return(0);
}
-- eof ------------------------------------------------------ probe.c --

-- 
Alexander Anderson

mailto :     lists  at  almide period demon period co dot uk
bud-nav:     http://www.explosive-alma-services-bolts.co.uk/
pgp-sig:  1B5A DF3D A3D9 B932 39EB  3F1B 981F 4110 27E1 64A4


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019