curl-users
Re: Help required...
Date: Wed, 4 Jul 2001 00:03:36 -0700 (PDT)
Hi Linus,
Thanks once again. I was able to get ftpget.c compiled
and I downloaded a File too... :) All credit to you.
1) Ok, now, I am not able to really understand the API
provided with Curl to write my own programs... Are
there any examples around apart from these..
I am not able to properly understand the 3rd parameter
passed to every function properly
Eg : Like for eg curl_easy_setopt(curl, CURLOPT_URL,
"http://ftp.something.com/file.txt")
I could understand that the 3rd param here is a URL
since there is an example, but for the other
functions, I am finding it difficult...
Can you pl help me...
2) How Can I get ftpget.c into a .dll so that I can
call it from VB.??? Can you help me out please bye
giving me a start. (or) If you have any site which has
a thorough Docs for creating .dlls in VC so that they
can be used in Vb, can you please pass it on.
Hope I am not troubling you,
regards,
Naveen..
--- Linus Nielsen Feltzing <linus_at_haxx.se> wrote:
> > Thanks a million for yr help....
>
> You're welcome.
>
> > I think I have got libcurl.lib built successfully
> > through vc6.
>
> Great!
>
> > This is what I did...
> >
> > compiled /lib/makefile.vc6 after running
> vcvars32.bat
> > It generated libcurl.lib but with a lot of
> warnings?
> >
> > Qs is "Does that matter"? If yes, then let me know
> so
> > that I can try it once again, if no, then go
> on....
>
> Don't worry about the warnings.
>
> > Then I went to /src and got command line curl
> > compiled,
> > this also generated a lot of warnings, but it
> works :)
>
> Then you're set!
>
> > By this I understand that libcurl.lib was
> generated
> > successfully..
> >
> > Now, you have mailed me makefile.vc6 and ftpget.c
> > (windows version) I tried to generate ftpget.exe
> thru
> > makefile.vc6 from nmake, it gives me the error as
> > below
> >
> > ------------------------------------------------
> >
> > MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
> > cl.exe /MD /O2 /D "NDEBUG" /I "../include" /nologo
> > /W3 /GX /D "WIN32" /D "VC6" /D "_MBCS" /D "_LIB"
> /YX
> > /FD /c /D "MSDOS" ftpget.c
> > ftpget.c
> > ftpget.c(14) : fatal error C1083: Cannot open
> include
> > file: 'curl/curl.h': No such file or directory
> >
> > ** error 2 ** deleting ftpgetr.obj
> >
> > ------------------------------------------------
> >
> > I presume this is include path problem. Can you
> please
> > throw light on this. Is there any extra include
> path?
> > ../include or ../../include as above does not
> work.
> >
> > I noticed that makefile.vc6 to generate ftpget.exe
> and
> > libcurl.lib are more or less the same except for
> the
> > include path and the -lib option?
>
> Yep. The /I "../include" is supposed to point out
> the
> include directory in the curl distribution
> (curl-7.8/include).
> You can just as well set it to the absolute path,
> like:
>
> /D "C:/curl-7.8/include"
>
> or whatever.
>
> This makefile assumes that the ftpget.c file is
> located
> in the curl-7.8/docs/examples directory. If you
> moved it
> you must change the include path as well.
>
> > One more thing....
> > I tried creating a New Project Workspace thru
> > vc6(Win32 Console Application) and adding ftpget.c
> to
> > the source files and tried to compile, it gave me
> the
> > same problem inspite of libcurl.lib and
> wsock32.lib
> > being in the same directory.
>
> It does not have anything to do with the .lib-files,
> it
> is the .h-files. Just change the include path and it
> will
> work.
>
> Good luck!
>
> /Linus
>
>
=====
-----------------------------------------------------------------------------------------------------
FREE INTERNET INCOME Course - ongoing training on how to
create multiple income streams worldwide via the Internet.
Visit http://www.sixfigureincome.com/free/?483694 for more details.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Received on 2001-07-04