cURL / Mailing Lists / curl-library / Single Mail


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

From: Jeff Pohlmeyer <>
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:

Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

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