delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/13/19:57:52

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: How Can I Use the FtpCommand Function with Cygwin?
Date: Mon, 13 Feb 2006 16:57:43 -0800
Message-ID: <F24E92B4B6EF5840AD7C101F6D1BA8DD03F27710@cacexc05.americas.cpqcorp.net>
From: "Tischler, Ron" <ron DOT tischler AT hp DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k1E0vo6p017460

I am trying to use Cygwin to write a PC application that calls the
function named FtpCommand.  Microsoft documentation that I found online
says that there is a header named wininet.h and a library named
wininet.lib to link in.  On my PC, under the Cygwin stuff, I see
wininet.h, but not wininet.lib.  This version of wininet.h does have a
declaration of FtpCommand.   

My PC also has copies of wininet.h and wininet.lib under "Program
Files", but this copy of wininet.h and wininet.lib does not contain
FtpCommand.  When I compile, this header gets brought in, not the Cygwin
one, so my use of FtpCommand doesn't compile cleanly.  I can get around
that by typing in the declaration of FtpCommand myself.  But then, of
course, I get link time errors because it didn't find a wininet.lib that
contained FtpCommand.

Should I be trying to get a copy of wininet.lib from Cygwin, or a more
up-to-date version of wininet.lib from Microsoft?  Either way, what
would I need to do to link it into my application?


--
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/


- Raw text -


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