C
Chiefbutz
Ok, here is my code for my program:
"// CheckButton.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include <process.h>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string html;
system("curl.exe http://www.google.com");
html = stdout;
return 0;
}"
Basically what it does so far (or should do) is to get the HTML from
google.com. When I try and place stdout into html it doesn't work. Here
is my compile info:
------------------------------------------
Compiling...
CheckButton.cpp
c:\documents and settings\jason\my documents\visual studio
2005\projects\checkbutton\checkbutton\checkbutton.cpp(15) : error
C2679: binary '=' : no operator found which takes a right-hand operand
of type 'FILE *__w64 ' (or there is no acceptable conversion)
c:\program files\microsoft visual studio
8\vc\include\xstring(875): could be
'std::basic_string<_Elem,_Traits,_Ax>
&std::basic_string<_Elem,_Traits,_Ax>:perator =(const
std::basic_string<_Elem,_Traits,_Ax> &)'
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
c:\program files\microsoft visual studio
8\vc\include\xstring(880): or 'std::basic_string<_Elem,_Traits,_Ax>
&std::basic_string<_Elem,_Traits,_Ax>:perator =(const _Elem *)'
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
c:\program files\microsoft visual studio
8\vc\include\xstring(885): or 'std::basic_string<_Elem,_Traits,_Ax>
&std::basic_string<_Elem,_Traits,_Ax>:perator =(_Elem)'
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
while trying to match the argument list '(std::string, FILE
*__w64 )'
"// CheckButton.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include <process.h>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string html;
system("curl.exe http://www.google.com");
html = stdout;
return 0;
}"
Basically what it does so far (or should do) is to get the HTML from
google.com. When I try and place stdout into html it doesn't work. Here
is my compile info:
------------------------------------------
Compiling...
CheckButton.cpp
c:\documents and settings\jason\my documents\visual studio
2005\projects\checkbutton\checkbutton\checkbutton.cpp(15) : error
C2679: binary '=' : no operator found which takes a right-hand operand
of type 'FILE *__w64 ' (or there is no acceptable conversion)
c:\program files\microsoft visual studio
8\vc\include\xstring(875): could be
'std::basic_string<_Elem,_Traits,_Ax>
&std::basic_string<_Elem,_Traits,_Ax>:perator =(const
std::basic_string<_Elem,_Traits,_Ax> &)'
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
c:\program files\microsoft visual studio
8\vc\include\xstring(880): or 'std::basic_string<_Elem,_Traits,_Ax>
&std::basic_string<_Elem,_Traits,_Ax>:perator =(const _Elem *)'
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
c:\program files\microsoft visual studio
8\vc\include\xstring(885): or 'std::basic_string<_Elem,_Traits,_Ax>
&std::basic_string<_Elem,_Traits,_Ax>:perator =(_Elem)'
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
while trying to match the argument list '(std::string, FILE
*__w64 )'