If that was an option where I work I would be all over that. Unfortunately, this is what I was given to use.
I don't understand your solution. Are you saying the "private: " is what's killing it?
Main Topics
Browse All TopicsI'm a fairly new programmer as far c++ goes, and even newer to visual studio. I need to make an application that can go out and grab a URL and bring it down for me to parse and populate various controls in my application with data. Everywhere I've looked I've been pointed to libcurl. I've attempted to compile libcurl, include the libraries...just about everything under the sun. In the code section here, I've included the huge output of errors I get. If someone has a step-by-step how to, to get libcurl working in a c++ environment I would be happy to follow it. I've tried looking on the libcurl site and I can't seem to find a c++ way to do it.
Or if someone has an alternative way to grab a url I'm all ears.
The error output is from
curlpp::initialize();
curlpp::libcurlVersion();
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Firstly - You are attempting to use an unmanaged C++ code inside a managed (.NET) application. They are not the same programming language (despite superficial similarities). The 'private' keyword has nothing to do with your problem.
>>Unfortunately, this is what I was given to use.
Oh dear. :-( Someone wants to make your life difficult.
I don't know how flexible your 'work giver' is. The following are some options available:
1) Code the interface in C++ (eg. with MFC - microsoft prebuilt classes to help windows programming) and use the libcurl with that.
2) Write an unmanaged dll that wraps the libcurl and call that from your managed code.
3) Find a .NET equivalent of libcurl and use that directly with a WinForms application.
4) Immerse yourself in mixed mode programming and use thebits of libcurl you require as unmanaged code inside your managed app.
5) Convert the sections of libcurl you require from C++ into C++.NET and use that directly with a WinForms application.
>> Firstly - You are attempting to use an unmanaged C++ code inside a managed (.NET) application
It is my understanding that IJW (It Just works) means you can seamlessly integrate managed and unmanaged C++ code in a mixed mode managed C++ project.
You can write an unmanaged wrapper (that is still part of the managed project) to access the unmanaged code.
http://www.codeproject.com
http://ondotnet.com/pub/a/
>>Unfortunately, this is what I was given to use.
I've had a thought - exactly what has been specified ? Are you attempting to use C++ and by mistake started a C++.NET project instead of plain C++ ?
If that is the case then when you create a new project look carefully at what you select - it should not be a .NET based application.
>>>> It is my understanding that IJW (It Just works) means you can seamlessly integrate managed and unmanaged C++ code in a mixed mode managed C++ project.
"You can" isn't the same as "you should".
Unfortunately you would need knowledge both for managed C++ and unmanaged C++ what isn't the case by most experts here (e. g. I have only a rudimentary knowledge of managed C++) let aside by beginners. If you firstly heard about those differences, you better let hands-off building a mixed-language assembly.
>>>> If someone has a step-by-step how to, to get libcurl working in a c++ environment I would be happy to follow it.
If you would turn your C++.NET project to a Win32 or MFC project as Andy has suggested you could follow the instructions given in the following link:
http://blog.expandrive.com
If you are stuck on managed C++ using Windows Forms, you better use .NET services instead of libcurl. Though my knowledge of C++.NET is little to nothing, I know that the main purpose of C++.NET is to provide and use web-based services. So, it rarely is a problem to substitute each libcurl function by an equivalent .NET function.
Business Accounts
Answer for Membership
by: AndyAinscowPosted on 2009-10-12 at 04:25:37ID: 25550201
From your output
Form1_Load(class System::Object ^,class System::EventArgs ^)
I think you would have rather more success if you coded in C++ rather than C++.NET language - they aren't the same.