Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CToolBarCtrl, ¡¡ Help, please !! Pin
Rafael Fernández López4-May-04 10:08
Rafael Fernández López4-May-04 10:08 
GeneralFilling a child window in a dialog box dynamically Pin
cscafidi4-May-04 8:47
cscafidi4-May-04 8:47 
GeneralRe: Filling a child window in a dialog box dynamically Pin
David Crow4-May-04 9:05
David Crow4-May-04 9:05 
GeneralRe: Filling a child window in a dialog box dynamically Pin
cscafidi4-May-04 9:47
cscafidi4-May-04 9:47 
GeneralRe: Filling a child window in a dialog box dynamically Pin
David Crow4-May-04 10:01
David Crow4-May-04 10:01 
GeneralRe: Filling a child window in a dialog box dynamically Pin
cscafidi4-May-04 9:49
cscafidi4-May-04 9:49 
GeneralRe: Filling a child window in a dialog box dynamically Pin
Rafael Fernández López4-May-04 10:02
Rafael Fernández López4-May-04 10:02 
Generaloverloading operator >> Pin
kfaday4-May-04 8:39
kfaday4-May-04 8:39 
Hi!. i want to overload operator >>. What i've done so far doesn't work. I'm using visual C++ 6.0. When i place my mouse cursor over s, it says int s. It's the same if instead of writing 'std::string s' i write 'string s', even though in the header file i declared 'typedef std::string string;'



<br />
istream &operator>>(istream& stream, XML &x)<br />
{<br />
<br />
	std::string s;<br />
	std::getline(stream,s);<br />
                x.fromString(s); //i call this function to process the string but it's empty<br />
	return stream;<br />
}<br />



This is how i declared inside the class in the header class.


<br />
friend istream &operator>>(istream &stream, XML &x)





this is what i'm including and using in the header file.


<br />
#include <iostream><br />
using std::istream;<br />
using std:stream;<br />



and in main: using namespace std;
my class is called xml
in main i declare:


<br />
xml table;<br />
cin >> table;<br />



thanks!!
GeneralRe: overloading operator &gt;&gt; Pin
Joaquín M López Muñoz4-May-04 10:31
Joaquín M López Muñoz4-May-04 10:31 
GeneralRe: overloading operator &gt;&gt; Pin
kfaday4-May-04 11:01
kfaday4-May-04 11:01 
GeneralRe: overloading operator &gt;&gt; Pin
Joaquín M López Muñoz4-May-04 11:17
Joaquín M López Muñoz4-May-04 11:17 
GeneralRe: overloading operator &gt;&gt; Pin
kfaday4-May-04 11:38
kfaday4-May-04 11:38 
GeneralRe: overloading operator &gt;&gt; Pin
Joaquín M López Muñoz4-May-04 11:51
Joaquín M López Muñoz4-May-04 11:51 
GeneralRe: overloading operator &gt;&gt; Pin
kfaday4-May-04 12:43
kfaday4-May-04 12:43 
GeneralSMS Connector to GSM Server ... Pin
rasha20034-May-04 7:59
rasha20034-May-04 7:59 
GeneralRe: SMS Connector to GSM Server ... Pin
toxcct4-May-04 8:24
toxcct4-May-04 8:24 
GeneralRe: SMS Connector to GSM Server ... Pin
rasha20034-May-04 20:05
rasha20034-May-04 20:05 
Generaldialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 7:34
jonathanleebrown4-May-04 7:34 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:23
David Crow4-May-04 8:23 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 8:32
jonathanleebrown4-May-04 8:32 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:42
David Crow4-May-04 8:42 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:20
jonathanleebrown4-May-04 9:20 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:30
jonathanleebrown4-May-04 9:30 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 10:07
David Crow4-May-04 10:07 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 10:14
jonathanleebrown4-May-04 10:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.