cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: using libcurl with Visual Basic from MS-Access and Windows2000

From: Jeff Pohlmeyer <yetanothergeek_at_yahoo.com>
Date: Thu, 30 Oct 2003 21:32:49 -0800 (PST)

I think using libcurl from VB will not be this simple.

The default for libcurl is to write the received data
to standard output, which can cause a RTE because most
Windows GUI apps do not have an open console to write to.
( At least that has been my experience from using libcurl
 from Delphi applications. )

So you would need to also declare your own write callback,
or maybe import the I/0 functions from msvcrt.dll so that
you can get a "C" file handle for libcurl to operate on.

As Daniel already mentioned, you also need some way of determining
the numeric values for the CURLOPT constants. For the Delphi wrapper,
I just used a simple C program to dump the values to a text file.

Depending on how complex your program is, you might do better
with wininet.dll for simple transfers. There are lots of VB
examples out there if you google around, here is one:

  http://www.mentalis.org/apilist/C7A439CF5009BB20E10CA4C6D73F19D9.html

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-10-31